Replies: 2 comments
-
|
I guess I could just do this within the let html = this.liquid.parseAndRenderSync(item_template, ctx.environments); Would this be the incorrect way to do it? We would need to beware of circular references I guess.. |
Beta Was this translation helpful? Give feedback.
-
|
That line should be let html = yield this.liquid.renderer.renderTemplates(tpl, ctx);And
I created a tutorial for this, see https://liquidjs.com/tutorials/render-tag-content.html
You can directly pass |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a
custom_tag. I want the render function to select a template based on thecustom_tagparameters and render the template using thecustom_tagcontext. I would also like to add some more keys to the context if possibleExample that does not work (with notes and questions in the render function comments:
Beta Was this translation helpful? Give feedback.
All reactions