mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-13 05:55:26 +00:00
update
This commit is contained in:
24
node_modules/@11ty/eleventy/test/stubs/class-data-renderdata.11ty.js
generated
vendored
Normal file
24
node_modules/@11ty/eleventy/test/stubs/class-data-renderdata.11ty.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
class Test {
|
||||
data() {
|
||||
return {
|
||||
name: "Zach",
|
||||
otherFn: function() {
|
||||
return "Thanos";
|
||||
},
|
||||
renderData: {
|
||||
str: `StringTest`,
|
||||
test: function({ name }) {
|
||||
return `howdy ${name}`;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
render(data) {
|
||||
return `<p>${data.renderData.str}${
|
||||
data.renderData.test
|
||||
}, meet ${data.otherFn()}</p>`;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Test;
|
Reference in New Issue
Block a user