Skip to content

v0.6.4

Compare
Choose a tag to compare
@shailen-naidoo shailen-naidoo released this 02 Oct 05:28
· 148 commits to master since this release

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' },
}