Polyglot, autodidact. OSS author and contributor. Addicted to writing code, seeking my next 'fix'. Love communicating with an audience whose eyes don't glaze over when I get to the 'good parts'.
FYI, I wrote a library that can be used to create a tagged template literal from raw text. For example, you can fetch the literal from an external file and load it using the lib.
Polyglot, autodidact. OSS author and contributor. Addicted to writing code, seeking my next 'fix'. Love communicating with an audience whose eyes don't glaze over when I get to the 'good parts'.
FYI, I wrote a library that can be used to create a tagged template literal from raw text. For example, you can fetch the literal from an external file and load it using the lib.
github.com/vanillaes/interpolate
Interesting! What is your use case for it? Non ES6 engine?
Why introduce a new template syntax when JS already has a template syntax built-in?
For example, here's a web component that can fetch both the template and context (ie data) without the need to write any JS.
github.com/vanillawc/wc-template