Latte guesses Javascript context instead of html context inside <script type="text/html">. E.g. ``` php {$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 .
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 .