v0.6.4
Fixed an issue where the templateGenerator
for the generate
command was destructing the data props instead of passing the data as a prop to the page template.
Before
const page = ({ name }) => `
${name}
`;
module.exports = {
page,
data: () => { name: 'John' },
}
Now
const page = ({ data }) => `
${data.name}
`;
module.exports = {
page,
data: () => { name: 'John' },
}