https://github.com/joemarshall/refgen.git
Install with pip, i.e. clone the git to some_dir/refgen and run pip some_dir/refgen
You need a docx file called reference_template.docx in the current folder, then type
refgen.
Add a reference letter, then once you've done that, select it on the main screen and hit enter (or 'generate') and
you should have a .docx (whatever platform) and a .pdf (windows only) in the current folder. If anyone wants to submit a PR for
mac/linux support you're welcome!
The template document is a normal word docx file, with tags embedded directly into the text. The tags use Jinja tags which mean you can do things like conditionals depending on whether the student is currently studying or has finished.
Tags are:
| tag | meaning |
|---|---|
| studentname | The name of the student |
| refdate | The date on the reference letter |
| howknown | A sentence to say how you know the student |
| startdate | The start date of the student's studies |
| enddate | The end date of the student's studies |
| hasend | If this is false, the student is still studying |
| recommendation_text | The text recommending the student |
| target | A target job / university / whatever the student is applying for |
This is to confirm that they {% if has_end %} studied Computer Science
at the University of Nottingham from {{ start_date }} until {{ end_date }}
{% else %} have been a student of Computer Science at the University of Nottingham
since {{ start_date }}{% endif %}