lit-mustache

Code Mustache Templates literal

Usage no npm install needed!

<script type="module">
  import litMustache from 'https://cdn.skypack.dev/lit-mustache';
</script>

README

lit-mustache

Usage

const mustache = require('lit-mustache')
const template = (scope) => mustache`<p>{{name}}</p>`(scope)

syntax highlighting for vscode

https://github.com/direktspeed/vscode-lit-mustache

TODO

Will Work mustache should have access to this as scope and so use its name needs evaluation whats the this context when imported and used as function mustache and fat arrow

const mustache = require('lit-mustache');
const template = (name) => mustache`<p>{{name}}</p>`;

need to add some more tests