Explanation of <script type = “text/template”> … </script>
-
29-10-2019 - |
Pergunta
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?
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow