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

16 lines
223 B
JavaScript

class Test {
returnsBill() {
return "Bill";
}
static returnsTed() {
return "Ted";
}
render({ name }) {
return `<p>${name}${this.returnsBill()}${Test.returnsTed()}</p>`;
}
}
module.exports = Test;