The Basics

The basics of Squirrelly syntax

Language Items

There are 4 types of language items in Squirrelly:

  • References (global and helper). These are references to the actual data of options that are passed in.

  • 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.

Last updated