~ubuntu-branches/ubuntu/trusty/ruby-liquid/trusty-proposed

« back to all changes in this revision

Viewing changes to History.md

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2011-10-22 00:11:06 UTC
  • Revision ID: package-import@ubuntu.com-20111022001106-ajpsf9ov2st9oxdx
Tags: upstream-2.3.0
Import upstream version 2.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Liquid Version History
 
2
 
 
3
## 2.3.0
 
4
 
 
5
* Several speed/memory improvements
 
6
* Numerous bug fixes
 
7
* Added support for MRI 1.9, Rubinius, and JRuby
 
8
* Added support for integer drop parameters
 
9
* Added epoch support to `date` filter
 
10
* New `raw` tag that suppresses parsing
 
11
* Added `else` option to `for` tag
 
12
* New `increment` tag
 
13
* New `split` filter
 
14
 
 
15
 
 
16
## 2.2.1 / 2010-08-23
 
17
 
 
18
* Added support for literal tags
 
19
 
 
20
 
 
21
## 2.2.0 / 2010-08-22
 
22
 
 
23
* Compatible with Ruby 1.8.7, 1.9.1 and 1.9.2-p0
 
24
* Merged some changed made by the community
 
25
 
 
26
 
 
27
## 1.9.0 / 2008-03-04
 
28
 
 
29
* Fixed gem install rake task
 
30
* Improve Error encapsulation in liquid by maintaining a own set of exceptions instead of relying on ruby build ins
 
31
 
 
32
 
 
33
## Before 1.9.0
 
34
 
 
35
* Added If with or / and expressions
 
36
* 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.
 
37
* Added more tags to standard library
 
38
* Added include tag ( like partials in rails )
 
39
* [...] Gazillion of detail improvements
 
40
* Added strainers as filter hosts for better security [Tobias Luetke]
 
41
* Fixed that rails integration would call filter with the wrong "self" [Michael Geary]
 
42
* 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]
 
43
* Removed count helper from standard lib. use size [Tobias Luetke]
 
44
* Fixed bug with string filter parameters failing to tolerate commas in strings. [Paul Hammond]
 
45
* 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]
 
46
    {{ 'Typo' | link_to: 'http://typo.leetsoft.com', 'Typo - a modern weblog engine' }}
 
47
* 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]
 
48
 
 
49
  class ProductDrop < Liquid::Drop
 
50
    def top_sales
 
51
       Shop.current.products.find(:all, :order => 'sales', :limit => 10 )
 
52
    end
 
53
  end
 
54
  t = Liquid::Template.parse( ' {% for product in product.top_sales %} {{ product.name }} {% endfor %} '  )
 
55
  t.render('product' => ProductDrop.new )
 
56
* Added filter parameters support. Example: {{ date | format_date: "%Y" }} [Paul Hammond]