I have this template that includes videos from youtube being loaded with swfobject.
Is there a way to include a script tag...
<script type="text/javascript">
</script>
inside a jQuery Template??
<script id="filaVideoTemplate" type="text/x-jQuery-tmpl">
<!-- Some HTML here -->
<script type="text/javascript">
<!-- Some javascript here -->
</script>
</script>
Obviously it doesn't work directly, is there any way to achive the same thing without the script inside other script?
<script id="filaVideoTemplate" type="text/x-jQuery-tmpl">
<!-- Some HTML here -->
<script type="text/javascript">
<!-- Some javascript here -->
{{html "</sc"+"ript>"}}
</script>
You can use {{html "</sc"+"ript>"}} replace </script>