Version: Next
Why Pick Squirrelly?
Features
Squirrelly has a number of features that set it apart from the competition. It is:
- Faster than most templating engines
- Supports user-defined helpers and native helpers
- Supports filters
- Supports partials
- Supports custom tags (delimiters)
- Incredibly lightweight: in comparison: the full version only weighs about 4 KB gzipped, compared to Pug's 237 KB and Handlebars' 21.5 KB
- Works with other languages than HTML
- Not white-space sensitive, but white-space-trimming configurable
- Syntax accessible to non-JavaScript programmers
- Supports comments and quotes containing ending delimiter (e.g.
{{! /* commented out {{something}} \*/}}
)
Feature | Squirrelly | Handlebars | Pug | Marko | Dust | Swig |
---|---|---|---|---|---|---|
Auto Escape | โ | โ | โ | โ | โ | โ |
Whitespace sensitive | No | No | Yes | No | No | No |
Content Type | All | All | HTML | HTML | All | All |