Plugin details

Ruby library for rendering safe templates which cannot affect the security of the server they are rendered on.

Websitehttp://www.liquidmarkup.org/ Repositoryhttp://liquid-markup.googlecode.com/svn/ Author Tobias Luetke Tags Templates, Markup LicenseMIT

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 documentation

Edit plugin | (0 older versions) | Last edited by: maxim_kulkin, about 1 year ago