15 lines
208 B
JavaScript
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;
|