-
Notifications
You must be signed in to change notification settings - Fork 84
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
If tag is not specified.. #31
Comments
Actually, it should just be printing nothing when it encounters that tag. I will look into this. |
Would it make sense to not touch the {{}} if the view doesn't define the tag for it? e.g.
... would produce: Hello world, test {{bar}} maybe this behavior could be configured. |
Mustache tags are suppose to render blank if their value is not defined. I On Thu, Jan 10, 2013 at 4:49 PM, Thomas Amsler notifications@github.comwrote:
|
As a default it make sense. The specific use-case that I have is: I need to template an HTML file that uses Mustache tags for two purposes:
A way to overwrite the default behavior would be greatly appreciated. |
adding my .02, would be great to have an event that notifies you of missed tags. |
..it fails. I tried with a tpl containing {{mytag}} and a json shema {john:"I'm john"}, I got no response from the server (I use the example mentioned on the main page).
It seems simple to correct, but that really harm (I mean if I forget only one string the client never get the data). Would be better if {{mytag}} would be replaced by a blank if not found :) (throwing an error in the server, but not blocking evthg)
Ciao,
Jk.
The text was updated successfully, but these errors were encountered: