The Basics

Language Items

There are 4 types of language items in Squirrelly:

  • References (global and helper). Global references are direct references to the data you call your template with. Helper references, prefixed with @, reference data output by helpers.

  • Helpers. These are for logic in the template. Loops and conditionals are both implemented as native helpers, a special kind of helper that compiles into native JS code before rendering.

  • Filters. These are for processing a string after it’s been evaluated. Escaping and trimming are done with filters.

Inspiration

Squirrelly takes inspiration from Mustache, Handlebars, Nunjucks, Swig, and many other great template engines.