Skip to content

v0.4.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@kosude kosude released this 29 May 15:41
· 14 commits to main since this release
v0.4.2
c0a53c8

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