You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then the helper isn't being applied and I end up with You got {{#primary}}200{{/primary}} points! in that section, though it does properly apply the helper to the next section.
The text was updated successfully, but these errors were encountered:
The Front Matter is static metadata. When Panini renders a page, it pulls the Front Matter out of the original page, and converts it into a data object. That data object is then accessible in Handlebars, like so:
---name: Chris---
<p>Hi, {{name}}</p>
The Front Matter has to be parsed and removed before Handlebars can do its thing—otherwise you've created a circular dependency.
I'm not sure what your {{#primary}} helper does, but if it's just a formatting thing (like adding HTML around the contents), there are ways to do that without having dynamic Front Matter.
It's best to think of the Front Matter as pure data, and not having anything to do with presentation.
Given the following setup:
When index.html contains:
And heading.html contains:
Then the helper isn't being applied and I end up with
You got {{#primary}}200{{/primary}} points!
in that section, though it does properly apply the helper to the next section.The text was updated successfully, but these errors were encountered: