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

15 lines
208 B
JavaScript

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