work.suroh.tk/node_modules/@11ty/eleventy/test/stubs/exports-flatdata.11ty.js

7 lines
146 B
JavaScript

// This is invalid, data must be an object
exports.data = "Ted";
exports.render = function(name) {
return `<p>${JSON.stringify(name)}</p>`;
};