开发者

Having Eclipse Work with jQuery Templates

开发者 https://www.devze.com 2023-03-14 15:26 出处:网络
Have alot of the following in this project <script id=\"placementsListTemplate\" type=\"text/x-query/tmpl\">

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消