…
Removed Block#end_tag. Instead, override parse with super
followed by your code. See #446 [Dylan Thacker-Smith, dylanahsmith]
Fixed condition with wrong data types, see #423 [Bogdan Gusiev]
Add url_encode to standard filters, see #421 [Derrick Reimer, djreimer]
Add uniq to standard filters [Florian Weingarten, fw42]
Add exception_handler feature, see #397 and #254 [Bogdan Gusiev, bogdan and Florian Weingarten, fw42]
Optimize variable parsing to avoid repeated regex evaluation during template rendering #383 [Jason Hiltz-Laforge, jasonhl]
Optimize checking for block interrupts to reduce object allocation #380 [Jason Hiltz-Laforge, jasonhl]
Properly set context rethrow_errors on render! #349 [Thierry Joyal, tjoyal]
Fix broken rendering of variables which are equal to false, see #345 [Florian Weingarten, fw42]
Remove ActionView template handler [Dylan Thacker-Smith, dylanahsmith]
Freeze lots of string literals for new Ruby 2.1 optimization, see #297 [Florian Weingarten, fw42]
Allow newlines in tags and variables, see #324 [Dylan Thacker-Smith, dylanahsmith]
Tag#parse is called after initialize, which now takes options instead of tokens as the 3rd argument. See #321 [Dylan Thacker-Smith, dylanahsmith]
Raise Liquid::ArgumentError
instead of
::ArgumentError
when filter has wrong number of arguments #309
[Bogdan Gusiev, bogdan]
Add a to_s default for liquid drops, see #306 [Adam Doeler, releod]
Add strip, lstrip, and rstrip to standard filters [Florian Weingarten, fw42]
Make if, for & case tags return complete and consistent nodelists, see #250 [Nick Jones, dntj]
Prevent arbitrary method invocation on condition objects, see #274 [Dylan Thacker-Smith, dylanahsmith]
Don't call to_sym when creating conditions for security reasons, see #273 [Bouke van der Bijl, bouk]
Fix resource counting bug with respond_to?(:length), see #263 [Florian Weingarten, fw42]
Allow specifying custom patterns for template filenames, see #284 [Andrei Gladkyi, agladkyi]
Allow drops to optimize loading a slice of elements, see #282 [Tom Burns, boourns]
Support for passing variables to snippets in subdirs, see #271 [Joost Hietbrink, joost]
Add a class cache to avoid runtime extend calls, see #249 [James Tucker, raggi]
Remove some legacy Ruby 1.8 compatibility code, see #276 [Florian Weingarten, fw42]
Add default filter to standard filters, see #267 [Derrick Reimer, djreimer]
Add optional strict parsing and warn parsing, see #235 [Tristan Hume, trishume]
Add I18n syntax error translation, see #241 [Simon Hørup Eskildsen, Sirupsen]
Make sort filter work on enumerable drops, see #239 [Florian Weingarten, fw42]
Fix clashing method names in enumerable drops, see #238 [Florian Weingarten, fw42]
Make map filter work on enumerable drops, see #233 [Florian Weingarten, fw42]
Improved whitespace stripping for blank blocks, related to #216 [Florian Weingarten, fw42]
Security fix, cherry-picked from master (4e14a65): * Don't call to_sym when creating conditions for security reasons, see #273 [Bouke van der Bijl, bouk] * Prevent arbitrary method invocation on condition objects, see #274 [Dylan Thacker-Smith, dylanahsmith]
IMPORTANT: Liquid 2.6 is going to be the last version of Liquid which maintains explicit Ruby 1.8 compatability. The following releases will only be tested against Ruby 1.9 and Ruby 2.0 and are likely to break on Ruby 1.8.
Bugfix for #106: fix example servlet [gnowoel]
Bugfix for #97: strip_html filter supports multi-line tags [Jo Liss, joliss]
Bugfix for #114: strip_html filter supports style tags [James Allardice, jamesallardice]
Bugfix for #117: 'now' support for date filter in Ruby 1.9 [Notre Dame Webgroup, ndwebgroup]
Bugfix for #166: truncate filter on UTF-8 strings with Ruby 1.8 [Florian Weingarten, fw42]
Bugfix for #204: 'raw' parsing bug [Florian Weingarten, fw42]
Bugfix for #150: 'for' parsing bug [Peter Schröder, phoet]
Bugfix for #126: Strip CRLF in strip_newline [Peter Schröder, phoet]
Bugfix for #174, “can't convert Fixnum into String” for “replace” [wǒ_is神仙, jsw0528]
Allow a Liquid::Drop to be passed into Template#render [Daniel Huckstep, darkhelmet]
Resource limits [Florian Weingarten, fw42]
Add reverse filter [Jay Strybis, unreal]
Add utf-8 support
Use array instead of Hash to keep the registered filters [Tasos Stathopoulos, astathopoulos]
Cache tokenized partial templates [Tom Burns, boourns]
Avoid warnings in Ruby 1.9.3 [Marcus Stollsteimer, stomar]
Better documentation for 'include' tag (closes #163) [Peter Schröder, phoet]
Use of BigDecimal on filters to have better precision (closes #155) [Arthur Nogueira Neves, arthurnn]
Security fix, cherry-picked from master (4e14a65): * Don't call to_sym when creating conditions for security reasons, see #273 [Bouke van der Bijl, bouk] * Prevent arbitrary method invocation on condition objects, see #274 [Dylan Thacker-Smith, dylanahsmith]
Fix “can't convert Fixnum into String” for “replace”, see #173, [wǒ_is神仙, jsw0528]
Yanked from rubygems, as it contained too many changes that broke compatibility. Those changes will be on following major releases.
Prevent Object methods from being called on drops
Avoid symbol injection from liquid
Added break and continue statements
Fix filter parser for args without space separators
Add support for filter keyword arguments
Performance improvements
Allow filters in assign
Add modulo
filter
Ruby 1.8, 1.9, and Rubinius compatibility fixes
Add support for quoted['references']
in tablerow
Add support for Enumerable to tablerow
strip_html
filter removes html comments
Several speed/memory improvements
Numerous bug fixes
Added support for MRI 1.9, Rubinius, and JRuby
Added support for integer drop parameters
Added epoch support to date
filter
New raw
tag that suppresses parsing
Added else
option to for
tag
New increment
tag
New split
filter
Added support for literal tags
Compatible with Ruby 1.8.7, 1.9.1 and 1.9.2-p0
Merged some changed made by the community
Fixed gem install rake task
Improve Error encapsulation in liquid by maintaining a own set of exceptions instead of relying on ruby build ins
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: '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]