public
Fork of tobi/liquid
Description: Liquid markup language. Save, customer facing template language for flexible web apps.
Homepage: http://www.liquidmarkup.org
Clone URL: git://github.com/jamesmacaulay/liquid.git
Tobias Lütke (author)
Thu May 08 08:34:43 -0700 2008
commit  7f58cbf82d9a064c191a1e5ca957f1850bbed5fb
tree    6c39a65f75568213a2c5ca9f17553b62e429730d
parent  1d647361e1a39ee09f1bd2d62701925c0128c578
liquid / History.txt
100644 45 lines (25 sloc) 1.965 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
1.9.0 / 2008-03-04
 
* Fixed gem install rake task
* Improve Error encapsulation in liquid by maintaining a own set of exceptions instead of relying on ruby build ins
 
Before 1.9.0
 
* Added If with or / and expressions
 
* Implemented .to_liquid for all objects which can be passed to liquid like Strings Arrays Hashes Numerics and Booleans. To export new objects to liquid just implement .to_liquid on them and return objects which themselves have .to_liquid methods.
 
* Added more tags to standard library
 
* Added include tag ( like partials in rails )
 
* [...] Gazillion of detail improvements
 
* Added strainers as filter hosts for better security [Tobias Luetke]
 
* Fixed that rails integration would call filter with the wrong "self" [Michael Geary]
 
* Fixed bad error reporting when a filter called a method which doesn't exist. Liquid told you that it couldn't find the filter which was obviously misleading [Tobias Luetke]
 
* Removed count helper from standard lib. use size [Tobias Luetke]
 
* Fixed bug with string filter parameters failing to tolerate commas in strings. [Paul Hammond]
 
* Improved filter parameters. Filter parameters are now context sensitive; Types are resolved according to the rules of the context. Multiple parameters are now separated by the Liquid::ArgumentSeparator: , by default [Paul Hammond]
  
  {{ 'Typo' | link_to: 'http://typo.leetsoft.com', 'Typo - a modern weblog engine' }}
  
 
* Added Liquid::Drop. A base class which you can use for exporting proxy objects to liquid which can acquire more data when used in liquid. [Tobias Luetke]
 
  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 )
 
 
* Added filter parameters support. Example: {{ date | format_date: "%Y" }} [Paul Hammond]