Skip to content

Render lazy property. #676

Answered by harttle
AsadCSE asked this question in Q&A
Mar 8, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @AsadCSE , please try Drops: https://liquidjs.com/tutorials/drops.html

And alternatively, data properties in LiquidJS can be promises, like:

liquid.parseAndRenderAsync("{{foo}}", {
    foo: fetchSomethingAsync().then(obj => obj.foo)
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AsadCSE
Comment options

Answer selected by AsadCSE
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