Closed zenorocha closed 6 years ago
Hmmm this is cool. Was wondering if this was done?
How does this work with handlebars?
I'm trying your code with the handlebar engine and get the following error
Metalsmith · Parse error on line 1: {{ partial('section-sta ---^ Expecting 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'INVALID'
Partials would become super handy if they could pass data:
That way a partial could render dynamic content from the main file:
What do you think?