npm install @aaashur/eleventy-nunjucks-components
Then, include it in your .eleventy.js
config file:
const nunjucksComponents = require("@aaashur/eleventy-nunjucks-components");
module.exports = (eleventyConfig) => {
eleventyConfig.addPlugin(nunjucksComponents);
};
TODO
Thanks to the following folks for their work used or adapted by eleventy-nunjucks-components:
- Trys Mudford for sharing the encapsulated components pattern