Wednesday, February 8, 2017

CFEngine Mustache templating with variable defaults

Wasn't sure if mustache default variables would work with CFEngine, eg:
{{variable}}{{^variable}}default content{{/variable}}

But, it seems to work just fine:
And the output: