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
Would be very nifty if the render function could take a "jsonPath" option.
something like return template.render.bind(template, getJSONFromFile(options.jsonPath))
The text was updated successfully, but these errors were encountered:
Ah, like retrieve some extra options from some given .json file? Interesting idea. This could be something we put in where the Twig template is built. Usually it takes it from YAML front-matter, but we could do something like have it be a Twig function that expands the local variable table.
Would be very nifty if the render function could take a "jsonPath" option.
something like
return template.render.bind(template, getJSONFromFile(options.jsonPath))
The text was updated successfully, but these errors were encountered: