Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 556 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 556 Bytes

Eleventy global macro test

Both projects build two routes, /nunjucks and /markdown. Each relies on a globally loaded macro, component(), defined in _includes/component.njk.

The Eleventy 2.0.1 project uses the approach from this comment to globally inject importing the component() macro from component.njk.

The Eleventy 3.0.0 project attempts to use the slightly modified approach suggested here.