Hi, is it possible to store Liquid code in a variable and then render it programmatically?
The goal is that the Liquid code will come from a field in the app, merchant provided liquid code of course, stored in a metafield, then rendered as the schema field “custom_liquid” does.
Regarding the usable input settings I believe only color scheme related settings are not usable within app blocks or app embed blocks, or at least that is the way they are currently documented from what I can tell.
Currently there is no metafield suitable for Liquid content.
Hello @junaidkbr ,
No, Liquid doesn’t support rendering Liquid code stored in a variable or metafield at runtime. Liquid is a secure, compiled template language, so Shopify doesn’t allow dynamic evaluation (eval-like behavior) for security and performance reasons.