Skip to content
Discussion options

You must be logged in to vote

Try passing engine.options as the second argument to the Context constructor.

This is roughly what Liquid.parseAndRender does when creating an implicit context for you.

const context = new Context({ s: "b" }, engine.options, { sync: false });

public constructor (env: object = {}, opts: NormalizedFullOptions = defaultOptions, renderOptions: RenderOptions = {}, { memoryLimit, renderLimit }: { [key: string]: Limiter } = {}) {

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ilg-ul
Comment options

Answer selected by ilg-ul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants