Is it possible to parse Liquid in a string?

dreid3
New Member
1 0 0

Basically I have an object with a field object.text that contains some liquid code. object.text is something like

"{% assign instructions = product.metafields.instructions %}"

 

I then plan on using instructions in the rest of the liquid. 

 

Is there any way to do this? Something like the theme tag include except instead of a snippet file, I just have a string. 

0 Likes