handlebars(1)

handlebars1

Extension to the mustache templating language

Usage

handlebars [{template | directory}] ...

Overview

Precompile handlebar templates.

Options

-f, --output

Output File [string]

--map

Source Map File [string]

-a, --amd

Exports amd style (require.js) [boolean]

-c, --commonjs

Exports CommonJS style, path to Handlebars module [string] [default: null]

-h, --handlebarPath

Path to handlebar.js (only valid for amd-style) [string] [default: ""]

-k, --known

Known helpers [string]

-o, --knownOnly

Known helpers only [boolean]

-m, --min

Minimize output [boolean]

-n, --namespace

Template namespace [string] [default: "Handlebars.templates"]

-s, --simple

Output template function only. [boolean]

-N, --name

Name of passed string templates. Optional if running in a simple mode. Required when operating on multiple templates. [string]

-i, --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]

-r, --root

Template root. Base value that will be stripped from template names. [string]

-p, --partial

Compiling a partial template [boolean]

-d, --data

Include data when compiling [boolean]

-e, --extension

Template extension. [string] [default: "handlebars"]

-b, --bom

Removes the BOM (Byte Order Mark) from the beginning of the templates. [boolean]

-v, --version

Prints the current compiler version [boolean]

--help

Outputs this message [boolean]

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From handlebars 3:4.7.7+~4.1.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.