A useful debug filter for 11ty that can dump almost anything.
npm install @jamshop/eleventy-filter-dump
npm install @jamshop/eleventy-filter-dump
`
Usage
In you main config .eleventy.js:
`
const dumpFilter = require("@jamshop/eleventy-filter-dump");
module.exports = (eleventyConfig) => {
eleventyConfig.addFilter("dump", dumpFilter);
// and the rest of your config
};
`
Then in your templates:
`
{{ "something" | dump | safe }}
`
It needs | safe because it will output a