Squirrelly
Get StartedTemplate SyntaxAPICommunity
7.x.x
7.x.x
  • Overview
  • FAQ
  • Demo
  • Performance
  • Changelog
  • Getting Started
    • Installation
    • Your First Template
    • Why Squirrelly?
    • What's a template engine?
  • Template Syntax
    • The Basics
    • Global References
    • Helper References
    • Filters
    • Helpers
    • Self-Closing Helpers
    • Native Helpers
    • Setting custom tags
    • Partials
    • Built-in Helpers
  • API
    • API Overview
    • Compile
    • Render
    • renderFile
    • load
    • defineFilter
    • setDefaultFilters
    • autoEscaping
    • defineHelper
    • defineNativeHelper
    • definePartial
    • defaultTags
  • Recipes
    • Squirrelly with ExpressJS
  • Guides
    • Generating Badges with Squirrelly
Powered by GitBook
On this page
  • Features
  • Why Regular Expressions?
  1. Getting Started

Why Squirrelly?

Features

Squirrelly has a number of features that set it apart from the competition:

  • It's faster than most templating engines

  • It supports user-defined helpers and native helpers

  • It supports filters

  • It supports partials

  • It supports custom tags (delimeters)

  • It's incredibly lightweight: in comparison: the full version only weighs about 2.2 KB gzipped, compared to Pug's 237 KB and Handlebars' 21.5 KB

  • It works with other languages than HTML

  • It's not white-space sensitive

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

Why Regular Expressions?

Though some people think that regular expressions aren't a good idea for template engines, we believe they're the right choice for Squirrelly because of the speed they allow, because of the extensive testing we've done, and because of the relative simplicity of Squirrelly's syntax.

PreviousYour First TemplateNextWhat's a template engine?

Last updated 5 years ago