Ashes includes full support for the Dust language, and includes many built-in functions for your convenience.
Helpers are Dust’s way of providing extensibility in logic and flow control. This may sound complex, but most Helpers are intuitive and live up to the name. The following Helpers are provided in Ashes:
Filters are used to escape or otherwise process values at template rendering time. While simple, correct Filter usage is critical. Here are a few examples:
- Producing readable content -
- Browser compliance -
uescapes a URL, making it a valid href target
- Site and user security -
hescapes special characters (such as
>) into HTML entities (such as
&rt;), preventing XSS and other user agent attacks
Note that if no filter is explicitly specified, Ashes errs on the safe
h is assumed.
A lesser-used feature of the Dust language, Pragmas allow for
preprocessing of blocks, presumably for runtime performance
benefits. Currently there is only one built-in pragma,
used to escape HTML code blocks and the like.