-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mustache.js template with function fails using command line tool #429
Comments
Hi @hhumml, the view argument is supposed to be a .json file. JSON format doesn't support functions. |
@hhumml have example in the documentation of mustache : Template: |
@renancarvalhoo, you can't store functions in a .json file. |
i know this but you can work the data in the javascript before pass to template mustache. The documentation speak this. |
@renancarvalhoo, but @hhumml is talking about using the command line tool. |
I have the same problem, how to solve it ? |
Using the examples from the readme section, I get the following exception when trying it with the command line tool (installed with npm):
View
Template
When trying the same within the browser it works. What am I missing?
Background: I want to build a HTML template generator using the command line tool.
The text was updated successfully, but these errors were encountered: