HANDLEBARS(1)

πŸ“¦
version 4.7.9 Β· 2 versions
, in ubuntu stonking

πŸ’– HANDLEBARS(1) πŸ’–

okay bestie, so you found the handlebars man page β€” it lives in the User Commands part of the manual, section 1, which is the section for the stuff you actually type into a shell. come sit with me, this one's short but it's packed. πŸŽ€


✨ NAME ✨

handlebars β€” it's an extension to the Mustache templating language. that's it, that's the whole vibe. mustache but make it ✨fancy✨.


🌸 SYNOPSIS 🌸

handlebars [template|directory]...

like, you just hand it templates or directories, plural, as many as you want, and it goes brrr. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

Precompile handlebar templates. that's the whole job, no cap β€” you precompile them. <rainbow>iconic behavior honestly.


🫢 OPTIONS 🫢

every single one of these, in order, exactly as they are, because we do not skip options in this house:

  • -f, --output β€” the Output File. it's a [string]. πŸ“
  • --map β€” the Source Map File. also a [string].
  • -a, --amd β€” Exports amd style (require.js). [boolean].
  • -c, --commonjs β€” Exports CommonJS style, path to Handlebars module. [string] and the default is null.
  • -h, --handlebarPath β€” Path to handlebar.js (only valid for amd-style, so don't come crying to me if you use it elsewhere 😭). [string], default is "".
  • -k, --known β€” Known helpers. [string].
  • -o, --knownOnly β€” Known helpers only. [boolean].
  • -m, --min β€” Minimize output. [boolean].
  • -n, --namespace β€” Template namespace. [string], and it defaults to "Handlebars.templates" because of course it does. πŸ‘‘
  • -s, --simple β€” Output template function only. [boolean].
  • -N, --name β€” Name of passed string templates. it's Optional if running in a simple mode, and Required when operating on multiple templates. [string]. so basically mandatory-ish, bestie. πŸ™ˆ
  • -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]. <cyan>the dash-stdin thing is the fun part.
  • -r, --root β€” Template root. that's the 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]. bye bye invisible gremlin characters πŸ‘‹
  • -v, --version β€” Prints the current compiler version. [boolean].
  • --help β€” Outputs this message. [boolean]. it's giving "help me help you" πŸ’œ

real talk: those [string] / [boolean] tags and every default value up there are load-bearing. <hotpink>copy them exactly, don't freestyle. πŸ’…

and that's the page, bestie!! we ate. 🍽️✨ made by the handlebars crew β€” this is handlebars version 4.7.9, dated April 2026. mwah, go precompile something gorgeous. πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from