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

18 lines
248 B
JavaScript
Raw Normal View History

2019-12-02 12:22:45 +00:00
class Test {
returnsBill() {
return "Bill";
}
static returnsTed() {
return "Ted";
}
render({ name }) {
return Buffer.from(
`<p>${name}${this.returnsBill()}${Test.returnsTed()}</p>`
);
}
}
module.exports = Test;