Support For Javascript Template Markup When Editing Html Files In Visual Studio
I have some HTML files that are loaded by Javascript and used to render content using underscore.js templates. They include markup like the following:
Then you may extract the content like this
$("#userTemplate").html() // to get the content
As for <%
, I currently do not know how to make VS ignore it, though I doubt it.
Update
Well, since you're using underscore.js, why not change the _.templateSettings
to use another symbol.
You may like these posts
Post a Comment for "Support For Javascript Template Markup When Editing Html Files In Visual Studio"