Having Eclipse Work with jQuery Templates
Have alot of the following in this project
<script id="placementsListTemplate" type="text/x-query/tmpl">
Trouble is, Eclipse doesn't see th开发者_运维技巧is as html. As it to be expected.
It would sure be nice if this wasn't the case. Is there a way, hacky or no, to make it highlight what is valid HTML as such?
Thanks! :D
It is little far fetched: but if you put templates to a separate file (.html) extension and then use some sort of include mechanism (PHP, Django templates, whatever you are hacking) to grab the actual template to your composed HTML output.
<script id="placementsListTemplate" type="text/x-query/tmpl">
{{ include "my.jquery.template.html" }}
</script>
精彩评论