I just stumbled upon something I've never seen before. In the source of Backbone.js's example TODO application (Backbone TODO Example) they had their templates inside a <script type = "text/template"></script>
, which contained code that looks like something out of PHP but with JavaScript tags.
Can someone explain this to me? Is this legit?
type="text/tcl"
which I saw in the W3C doc? How to use it? (Should I ask another question?) – L01man