Path: | History.txt |
Last Update: | Tue Feb 01 05:42:06 +0000 2011 |
2.2.1 / 2010-08-23
2.2.0 / 2010-08-22
1.9.0 / 2008-03-04
Before 1.9.0
{{ 'Typo' | link_to: 'http://typo.leetsoft.com', 'Typo - a modern weblog engine' }}
class ProductDrop < Liquid::Drop
def top_sales Shop.current.products.find(:all, :order => 'sales', :limit => 10 ) end
end t = Liquid::Template.parse( ’ {% for product in product.top_sales %} {{ product.name }} {% endfor %} ’ ) t.render(‘product’ => ProductDrop.new )