Using Liquid in Phoenix

Has anyone implemented Liquid to render Phoenix views?

I’m thinking the best way would probably be to use it as a Phoenix.Template.Engine with an extension something like .liq or .liquid so it could be used alongside other template engines like .eex, .haml or .slime etc.

After having a look at the phoenix_haml and phoenix_slime repos, I decided to set up a new mix project with the idea of creating a phoenix_liquid template engine but got hung up on the best way to go about it. It doesn’t seem as if the Liquid project is set up to be easily used in this way (or I’m just not able to grok it yet).

Has anyone done this? Opinions or ideas pro or con?

5 Likes

Edit: Didn’t notice the age of this post. There are the Liquex and Solid libraries.