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
  1. Template Syntax

Native Helpers

A native helper is a helper that is turned into JavaScript code at compilation time, rather than being called at runtime. For example,

{{log("hi")/}}

is turned into console.log("hi") .

Learn how to create your own native helpers here

Examples

{{log("hi")/}}

is turned into console.log("hi") .

PreviousSelf-Closing HelpersNextSetting custom tags

Last updated 5 years ago