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

14 lines
151 B
JavaScript

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