v0.4.2
Pre-release
Pre-release
This minor prerelease marks the addition of built-in variables, which are defined automatically by devinit at render-time. Documentation for the available variables can be found in the project README.
The file_contents
builtin is particularly useful since it allows for writing templates that append to a file's content, rather than replacing it entirely:
Pre
{{ BUILTIN.file_contents }}
Post
If this template is rendered to an existing file that looks like this:
Foo
bar
Then the resulting output will look like this:
Pre
Foo
bar
Post
As a side note - one other feature introduced by this prerelease is sorted lists, so the output of devinit list
and --list-vars
commands are sorted alphabetically.
Full Changelog: v0.4.1...v0.4.2