Liquid templates - idiomatic rails

hi!

I’m implementing Shopify’s liquid templates in a rails project.
Now, what would be the most idiomatic / nicest way to load & render
these templates from the database apart from

render text: template.render(‘name’ => name).html_safe ?

This solution doesnt look very pretty to me.
Not to mention the inheritance / partial logic