In the Mustache.js Javascript Library, functions without parameters can be provided instead of static data values.
This feature is in line with the Mustache spec and in addition allows side effects to be triggered at render time that avoids specific catch 22 issues when trying to inject data into templates.
In the Mustache.js Javascript Library, functions without parameters can be provided instead of static data values.
This feature is in line with the Mustache spec and in addition allows side effects to be triggered at render time that avoids specific catch 22 issues when trying to inject data into templates.
Please see added unit test for usage.