Liquid
-Ruby library for rendering safe templates which cannot affect the security of the server they are rendered + on.
+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 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(template).render 'products' => Product.find(:all) ++ + |
+
How do I get it?
+ +![]() |
+
+
+ Rubygems+ +
|
+
![]() |
+
+
+ Ruby on Rails plugin+Rails 3.0+Add gem 'liquid' to your Gemfile. + +Rails 2.3+
|
+
![]() |
+
+
+ Download Release+ + + |
+
![]() |
+
+
+ Git Clone+ + + |
+
Contact
-Shopify (developers@jadedpixel.com)
Download
-- You can download this project in either - zip or - tar formats. -
-You can also clone the project with Git - by running: -
$ git clone git://github.com/Shopify/liquid- - - - -
+ 



