Liquid is an extraction from the e-commerce system Shopify. Shopify powers many thousands of e-commerce stores which all call for unique designs. For this we developed Liquid which allows our customers complete design freedom while maintaining the integrity of our servers.

Liquid has been in production use since June 2006 and is now used by many other hosted web applications.

It was developed to for usage in Ruby on Rails web applications and integrates seamlessly as a plugin but it also works excellently as a stand alone library.

What does it look like?

Example snippet:



    <ul id="products">      
      {% for product in products %}
        <li>
          <h2>{{product.title}}</h2>
          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)

How do I get it?

Rubygems

Rubygems.

gem install liquid

Ruby on Rails

Ruby on Rails plugin

./script/plugin install \   http://liquid-markup.googlecode.com/svn/trunk

Ruby

Download Release

via Rubyforge

Ruby

Code checkout (git)

via Github

Liquid is a sponsored and made possible by constant development from jadedPixel technologies inc.