Liquid render tag #1579
-
11ty uses Liquidjs to render Liquid templates. And the Liquidjs documentations says, the Is there something missing from 11ty or is this a general problem with Liquidjs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I think it might depend on how you install 11ty (npm vs GitHub). I found harttle/liquidjs#163 which mentions that LiquidJS support for the If I look at the current/latest 11ty package.json ( Actually, here's a little snippet that I dropped in my local .eleventy.js config file to test: const eleventy = require("@11ty/eleventy/package.json");
const liquidjs = require("liquidjs/package.json");
console.log(`${eleventy.name} v${eleventy.version} includes ${liquidjs.name}@${liquidjs.version}`); OUTPUT
If I reinstall 11ty bleeding edge from GitHub (which I don't really recommend personally) via
https://www.11ty.dev/docs/languages/liquid/#optional-set-your-own-library-instance has some instructions for shimming in your own version of LiquidJS if you want, but I don't remember if that exact code snippet works anymore or if some LiquidJS API changes might require you to do a bit of tweaking (see 11ty/11ty-website#326 for a rough start). |
Beta Was this translation helpful? Give feedback.
I think it might depend on how you install 11ty (npm vs GitHub).
I found harttle/liquidjs#163 which mentions that LiquidJS support for the
render
tag was added in v9.2.0.If I look at the current/latest 11ty package.json (
master
branch), it appears that the LiquidJS version is^9.16.1
(yay!). Although, if I look at the 11tyv0.11.x
branch, it appears that the LiquidJS version is set to^6.4.3
(not yay), which might explain why [if you're installing via npm] the included version of LiquidJS isn't aware of therender
tag.Actually, here's a little snippet that I dropped in my local .eleventy.js config file to test: