dnwhte/vscode-mustache-syntax-highlighting

Highlight mustache templates used in RactiveJS

Opened this issue · 0 comments

RactiveJS is a JavaScript framework that uses MustacheJS for it's templating. The way RactiveJS template is defined is this way:

<script type="text/ractive">

How to make the plugin to parse this as a mustache template where ever it sees script type="text/ractive", as the script block can appear in any type of file, someone using RactiveJS with PHP the file extension might be .php, it could be .html, .rb etc.

So I think the ideal way would be to scan for and when text/ractive is encountered it will treat that as a Mustache template. It will be awesome if we can make that a configurable property.