2.0
kblomqvist
released this
13 Mar 10:54
·
25 commits
to 2.x-maintenance
since this release
- Added a new command-line option
-I
(or--searchpath
) to add DIRECTORY to the list of directories to be searched for referenced templates, aka hard-coded template extensions, inclusions and imports, in TEMPLATE. - Referenced templates are now included in Makefile compatible list of dependencies (option
-M
/-MD
). - Fixed SCons CBuilder to take referenced template and custom parser dependencies into account.
- Enabled Jinja whitespace control,
trim_blocks=True
andlstrip_blocks=True
. This change has an effect on how the template is rendered. - Added command line options
--no-trim-blocks
and--no-lstrip-blocks
to allow disabling the whitespace control. - Removed command-line option
--trim
in favor of Jinja's whitespace control. - Added command-line option
--version
to print version. - Added check to make sure that the rendered template has a signle newline at the end of file.