-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Bad context for <script type="text/html"> #24
Comments
This is a feature. See http://forum.nette.org/en/18981-how-can-i-disable-the-special-mode-of-latte-in-script-tag for related discussion. |
That does not explain why it is a feature but thanks anyway for heading me towards {contentType html} that is at least valid workaround. |
dg
added a commit
that referenced
this issue
Jun 13, 2014
dg
added a commit
that referenced
this issue
Jun 13, 2014
dg
added a commit
that referenced
this issue
Jun 13, 2014
Thanks a lot! cc67d2a seems to fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Latte guesses Javascript context instead of html context inside <script type="text/html">. E.g.
Similar construct is used in Knockout JS for templates (see http://knockoutjs.com/documentation/template-binding.html).
I've created a simple demo of this bug: https://github.com/glubo/latte_text_html .
The text was updated successfully, but these errors were encountered: