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
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'importcomponent%}<!-- 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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: