-
-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Description
Latte guesses Javascript context instead of html context inside <script type="text/html">. E.g.
{$foo}
<script id="template1" type="text/html">
{$foo}
</script>
<script>
document.write(document.getElementById('template1').text);
</script>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 .
Metadata
Metadata
Assignees
Labels
No labels