HANDLEBARS(1)
π 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 isnull.-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
- ubuntu stonking: handlebars 3:4.7.9-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms