janl / mustache.js

Minimal templating with {{mustaches}} in JavaScript
https://mustache.github.io
MIT License
16.37k stars 2.4k forks source link

Does the CLI alow for partials? #807

Open halloleo opened 1 year ago

halloleo commented 1 year ago

Does the library/CLI allow for mustache partials? If so, how? The help gives me:

$ mustache -h
Syntax: mustache <view> <template> [output]

And when I try something like

{{> file.html}} 

hoping file.html gets inlined, nothing is included.

phillipj commented 1 year ago

Yepp, the README has an example of CLI & partials usage with the -p argument: https://github.com/janl/mustache.js#command-line-tool