The Basics
Last updated
Last updated
There are 4 types of language items in Squirrelly:
References ( and ). Global references are direct references to the data you call your template with. Helper references, prefixed with @
, reference data output by 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.
. These are for processing a string after it’s been evaluated. Escaping and trimming are done with filters.
Squirrelly takes inspiration from Mustache, Handlebars, Nunjucks, Swig, and many other great template engines.