work.suroh.tk/node_modules/@11ty/eleventy/test/stubs/viperhtml.11ty.js

10 lines
195 B
JavaScript

const viperHTML = require("viperhtml");
// Returns buffer
module.exports = function(data) {
return viperHTML.wire()`<div>
This is a viper template, ${data.name}
${[data.html]}
</div>`;
};