Debugging a template in 11ty
TODO
Add the filter
eleventyConfig.addFilter("debugger", (...args) => {
console.log(...args)
debugger;
})
In the template
{\{ collections.catTree[0].data.breadcrumbs | debugger }}
Add the filter
eleventyConfig.addFilter("debugger", (...args) => {
console.log(...args)
debugger;
})
In the template
{\{ collections.catTree[0].data.breadcrumbs | debugger }}