0
votes

I am testing our web application which was built using Liquid Shopify and Ruby on Rails. I found a mail template page in the admin panel that can by customized using liquid template engine {{shop.name}} . Now i am wondering if i can take that beyond that. Does liquid shopify support to read local file or even system file contents and load its contents into the page? or maybe invoke some classes and methods that trigger code execution on the server?

how can below code be used to read local system/config file

template = Liquid::Template.parse(File.read("template.liquid"))

1

1 Answers

0
votes

If you parse a Liquid file in your App, you would fill in values for things like {{shop.name}} using Drops. The Documentation on using Liquid is pretty clear about how to use Liquid in your own Apps.