macros will cause 11ty to error in the console and not rebuild due to how 11ty handles nunjuck template inheritance which is slightly different than "vanilla" Nunjucks.
Ideally, there would be a global import so macros would only need to use a single import for all components that live under the components/ directory.
{% from 'macros/component.njk' import component %}
<!-- component usage -->
{{ component('blockquote', {
text:'This is a blockquote using a <strong>macro</strong>',
source: '<a href="https://github.com/11ty/eleventy/issues/613">Issue #613</a>'}) }}
This is only an attempt to keep everything in the spirit of Flightdeck, where Eleventy is at the helm with the least amount of friction for the developer experience.
macros will cause 11ty to error in the console and not rebuild due to how 11ty handles nunjuck template inheritance which is slightly different than "vanilla" Nunjucks.
Ideally, there would be a global import so macros would only need to use a single import for all components that live under the
components/
directory.This is only an attempt to keep everything in the spirit of Flightdeck, where Eleventy is at the helm with the least amount of friction for the developer experience.