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

15 lines
221 B
JavaScript

class Test {
get data() {
return {
key: "value1",
permalink: data => Buffer.from(`/my-permalink/${data.key}/`)
};
}
render({ name }) {
return `<p>${name}</p>`;
}
}
module.exports = Test;