work.suroh.tk/node_modules/@11ty/eleventy/test/stubs/class-data-fn.11ty.js

14 lines
147 B
JavaScript

class Test {
data() {
return {
name: "Ted"
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;