tvl-depot/templater
Phillip Johnsen ab059ad41c feat(templater): override sprig default function with guarded alternative
These changes overrides the `default` function provided by sprig with
an alternative to retrieve variable values from variables that might
not have been declared at all.

Referencing a variable in a template that is not declared, will lead
to the underlying templating functionality raising an error, causing
kontemplate to exit.

The override alternative to `default` accepts a second string argument
with the variable name. If the variable in question has not been
declared the first argument's value would be returned, just as the
original `default` function does.
2018-07-14 23:21:36 +02:00
..
testdata feat templater: Fail if values are missing 2017-04-04 11:05:09 +02:00
dns.go refactor: Remove old error handling library 2018-03-09 15:23:57 +01:00
pass.go refactor: Remove old error handling library 2018-03-09 15:23:57 +01:00
templater.go feat(templater): override sprig default function with guarded alternative 2018-07-14 23:21:36 +02:00
templater_test.go feat(license): Relicense under GPLv3 2017-11-21 11:46:27 +01:00