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

7 lines
146 B
JavaScript
Raw Normal View History

2019-12-02 12:22:45 +00:00
// This is invalid, data must be an object
exports.data = "Ted";
exports.render = function(name) {
return `<p>${JSON.stringify(name)}</p>`;
};