Path: | History.txt |
Last Update: | Sat Jun 12 14:33:11 +0000 2010 |
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 )