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
  • Node
  • With a CDN
  • Full Version
  • Runtime
  1. Getting Started

Installation

Install Squirrelly

Node

npm install --save squirrelly

After the install is finished, accessing Squirrelly is as simple as:

var Sqrl = require('squirrelly')

If you're using ES Modules, you can also do

import * as Sqrl from 'squirrelly'

With a CDN

All of the following methods make Squirrelly available through the global object Sqrl.

If you need to compile templates in the browser, use the full version. For best performance, though, Compile your templates into functions first and include them in the JavaScript of your site, and include just the runtime.

Full Version

Minified

<script src="https://unpkg.com/squirrelly@latest/dist/squirrelly.min.js"></script>

Development

<script src="https://unpkg.com/squirrelly@latest/dist/squirrelly.dev.js"></script>

Runtime

Minified

<script src="https://unpkg.com/squirrelly@latest/dist/squirrelly.runtime.js"></script>

Development

<script src="https://unpkg.com/squirrelly@latest/dist/squirrelly.runtime.dev.js"></script
PreviousChangelogNextYour First Template

Last updated 5 years ago