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.