usage: generate.py [-h] [--outer_template OUTER_TEMPLATE]
[--inner_template INNER_TEMPLATE]
[--annual_template ANNUAL_TEMPLATE]
folder output_file
Takes a folder full of YAML seminar descriptions and arranges them into a HTML
page based on the given templates
positional arguments:
folder Folder to search recursively for .yaml files
output_file Where to place the resulting output file
optional arguments:
-h, --help show this help message and exit
--outer_template OUTER_TEMPLATE
--inner_template INNER_TEMPLATE
--annual_template ANNUAL_TEMPLATE
Parameters are specified in curly braces, as if they will be passed to
Python's .format()
(because they will).
This is iterated over for each event (i.e. each YAML file).
The following names are recognised:
id
title
speaker
abstract
date
time
This file must be specified by hand; by default a dummy version is used.
The following names are recognised:
year
content
The latter is replaced by the results of applying inner_template.html
to each YAML file for the relevant year.
The main design of the page. Two names are recognised:
past
future
The former is replaced by the results of applying inner_template.html
to each YAML file for all future events. The latter is replaced by
the result of applying annual_template.html
to each year.