Learn the ins and outs of Postleaf with these helpful articles.

Filter Reference

Filters are used to transform a variable before outputting it. You can pipe a variable through one or more filters using the | character.

Dust.js ships with the following built-in filters.

Helper Reference

Helpers are sort of like template functions. Use them to handle basic logic and transform template data in robust ways.

Helpers are always prefixed with @ so you won't confuse them with variables. The syntax for helpers in Dust.js is as follows:

Themes Overview

Postleaf themes are built with Dust.js templates.

Dust.js is an open source, modern templating engine designed to work well in Node.js environments. The project is maintained by LinkedIn, and is quite popular with JavaScript projects.