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?