handlebars-lang / handlebars.js

Minimal templating on steroids.
http://handlebarsjs.com
MIT License
17.81k stars 2.04k forks source link

pass variables to precompiled template #2027

Open xenoterracide opened 5 months ago

xenoterracide commented 5 months ago

I don't see, (or maybe understand), how I could pass any variables/data for the templates on the cli https://handlebarsjs.com/installation/precompilation.html#usage according to the documentation/cli data is a boolean. So how do I pass it? filing here, because if this requires me to write javascript (according to the docs I think it might). I'd like to see an option for this. I'm also not certain how both the cli help and documentation are generated, so perhaps here is the appropriate place to start if it is a doc issue.