Partials in Liquid

Posted by kostia on Stack Overflow See other posts from Stack Overflow or by kostia
Published on 2009-05-12T12:50:41Z Indexed on 2010/04/16 21:03 UTC
Read the original article Hit count: 390

Hello,

We're trying to rewrite our current views from ERb to Liquid and we got following problem: we have a lot of render(:partial => '/path/to/partial') in our code, but we found absolutely no instructions how to render partials in Liquid. The only one solution we found was with help of render_to_string but it's just to ugly to be true.

Thanx!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about liquid-layout