27 lines
2.8 KiB
Plaintext
27 lines
2.8 KiB
Plaintext
Precompile handlebar templates.
|
|
Usage: handlebars.js [template|directory]...
|
|
|
|
Options:
|
|
--help Outputs this message [boolean]
|
|
-f, --output Output File [string]
|
|
--map Source Map File [string]
|
|
--esm Exports ECMAScript module style, path to Handlebars module (eg. "handlebars/lib/handlebars")
|
|
[string] [default: null]
|
|
-c, --commonjs Exports CommonJS style, path to Handlebars module [string] [default: null]
|
|
-a, --amd Exports AMD style (require.js) [deprecated] [boolean]
|
|
-h, --handlebarPath Path to handlebar.js (only valid for AMD-style) [deprecated] [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 Show version number [boolean] |