Scroll to navigation

HANDLEBARS(1) User Commands HANDLEBARS(1)

NAME

handlebars - Extension to the Mustache templating language

SYNOPSIS

handlebars [template|directory]...

DESCRIPTION

Precompile handlebar templates.

OPTIONS

Output File [string]
Source Map File [string]
Exports amd style (require.js) [boolean]
Exports CommonJS style, path to Handlebars module [string] [default: null]
Path to handlebar.js (only valid for amd-style) [string] [default: ""]
Known helpers [string]
Known helpers only [boolean]
Minimize output [boolean]
Template namespace [string] [default: "Handlebars.templates"]
Output template function only. [boolean]
Name of passed string templates. Optional if running in a simple mode. Required when operating on multiple templates. [string]
Generates a template from the passed CLI argument. "-" is treated as a special value and causes stdin to be read for the template value. [string]
Template root. Base value that will be stripped from template names. [string]
Compiling a partial template [boolean]
Include data when compiling [boolean]
Template extension. [string] [default: "handlebars"]
Removes the BOM (Byte Order Mark) from the beginning of the templates. [boolean]
Prints the current compiler version [boolean]
Outputs this message [boolean]
December 2021 handlebars 4.7.7