make yassium
strings reusable:
const y = require("yassium");
const tmpl = y`<${y.tag}>${y.content}</${y.tag}>`;
tmpl({ tag: "h1", content: "Title" }) === "<h1>Title</h1>";
tmpl({ tag: "h2", content: "Subtitle" }) === "<h2>Subtitle</h2>";
make yassium
strings reusable:
const y = require("yassium");
const tmpl = y`<${y.tag}>${y.content}</${y.tag}>`;
tmpl({ tag: "h1", content: "Title" }) === "<h1>Title</h1>";
tmpl({ tag: "h2", content: "Subtitle" }) === "<h2>Subtitle</h2>";