Liquid plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://liquid-markup.googlecode.com/svn/
Example snippet:
< ul id="products"> {% for product in products %} < li> < h2>{{product.title}} Only {{product.price | format_as_money }} < p>{{product.description | prettyprint | truncate: 200 }}< /p> < /li> {% endfor %} < /ul>
Code to render
Liquid::Template.parse(read_template).render 'products' => Product.find(:all)
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: maxim_kulkin, about 1 year ago

