Skip to content

bencwallace/thiscv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This CV

This CV is written in Handlebars.js

Why this CV?

This CV is generated using Handlebars.js, a Javascript templating system. Producing a CV / resume with such a system facilitates the management of multiple CVs that make use of the same data but may, for instance, differ in the following ways:

  • order of sections (e.g. two versions of a CV may differ in their ordering of the "Education" and "Experience" sections);
  • content of sections (e.g. two versions of a CV may differ in the extent of the work histories they contain);
  • global formatting of certain kinds of objects (e.g. dates and names); and
  • global style changes (via stylesheets).

The decision to use Handlebars.js rather than some other Javascript-based templating system was somewhat arbitrary. However, the decision to use Javascript rather than some other language was based on the ease of interoperability between Javascript and JSON.

Example

A sample CV was produced from the example.json data file.

Usage

Making a new CV

It's enough to just fill example.json with the appropriate data. For more extensive changes, you can modify template.html or the stylesheet as you see fit!

Compiling a CV

This can be done in the following two steps:

  1. Let Handlebars generate HTML output; and
  2. Convert HTML to desired format (e.g. PDF).

Generating HTML

Opening the HTML template file in a browser will typically not produce output due to the fact that client-side Javascript cannot access client files. One way to overcome this is to precompile.

Another approach, useful for making changes and quickly seeing the results, is to run a simple HTTP server. One of many way to do this is Python. With Python installed, navigate to the directory containing the desired HTML and run

python -m http.server

Then in the browser, navigate to localhost:8000 and open the template file.

Converting HTML to PDF

Probably the easiest way to do this is to print the HTML to PDF from a browser.

About

This CV is written in Handlebars.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published