Eager to get started? This page gives a good introduction for getting started with staticjinja.
staticjinja supports Python 2.6, 2.7, 3.3 and 3.4.
Installing staticjinja is simple with pip:
$ pip install staticjinja
If you’re just looking to render simple data-less templates, you can get up and running with the following shortcut:
$ staticjinja build Rendering index.html...
This will recursively search
./templates for templates (any file
whose name does not start with
_) and build them to
To monitor your source directory for changes, and recompile files if
they change, use
$ staticjinja watch Rendering index.html... Watching 'templates' for changes... Press Ctrl+C to stop.
watch each take 3 options:
--srcpath- the directory to look in for templates (defaults to
--outpath- the directory to place rendered files in (defaults to
--static- the directory (or directories) within
None, meaning no files are considered to be static files. You can pass multiple directories separating them by commas:
More advanced configuration can be done using the staticjinja API, see Using Custom Build Scripts for details.