7rans
40cc799f3d
Add example to split filter.
2012-06-11 10:32:12 -04:00
Daniel Schierbeck
5ac91e0837
Fix typo and add punctuation
2012-06-11 10:32:12 -04:00
Jonathan Rudenberg
1aff63ff57
Merge pull request #107 from amateurhuman/syntax-error-fixes-for-rubinius
...
Fix syntax error in htmltags.rb and for.rb for compatibility with rbx-2.0.0-dev (1.9.3)
2012-06-07 12:14:35 -07:00
Jonathan Rudenberg
08fdcbbf65
Merge pull request #120 from infospace/interpolate_regex_once
...
add interpolate once flag to regexes that never change
2012-06-07 12:06:57 -07:00
Michael Green
281e3ea9c8
add interpolate once flag to regexes that never change
2012-05-08 16:27:50 -07:00
akira yamada
84ed3d9964
apply "o" option to regexps to improve process time
2012-04-02 19:31:55 +09:00
Dennis Theisen
0e3b522fe2
Fix conditions using negative number comparisons
2012-03-12 16:38:34 -04:00
Chris Kelly
db07e2b67e
Fix syntax error in for and htmltags files for compatibility with Rubinius 2.0.0-dev
2012-03-09 00:24:31 -08:00
Dennis Theisen
b8d7b9aeda
Fix for-tag update to also work properly in Ruby 1.8.
...
* Follow up commit to 3d7c1c8
2012-02-29 16:13:46 -05:00
Dennis Theisen
3d7c1c80a0
Ruby 1.8 compatibility fix: Ensure for-loop on an empty string does not enter for-body.
2012-02-29 14:41:21 -05:00
Dennis Theisen
043d816460
Fix tablerow block to work with collection names in quoted syntax.
...
* Allows e.g. {% tablerow product in collections['frontpage'] %} instead of only collections.frontpage
2012-02-22 12:45:38 -05:00
Kristian PD
58ad90677b
Clarified compatibility comments, removed unused var from tag test.
2012-01-20 17:22:23 -05:00
Kristian PD
2b04590d4b
Revert "Revert "Added backwards compatibility for 1.8.7 String.each returning itself (and 1.9.3 not supporting .each).""
...
This reverts commit bce0033c65 .
2012-01-20 16:54:26 -05:00
Kristian PD
bce0033c65
Revert "Added backwards compatibility for 1.8.7 String.each returning itself (and 1.9.3 not supporting .each)."
...
This reverts commit 01dea94671 .
2012-01-20 16:47:34 -05:00
Kristian PD
01dea94671
Added backwards compatibility for 1.8.7 String.each returning itself (and 1.9.3 not supporting .each).
...
Moved for tag tests to their own test model from StandardTagTest.
2012-01-20 16:45:41 -05:00
Tobias Lütke
1a1b4702d7
Merge pull request #80 from ROFISH/master
...
Add Filters to Assign
2011-12-20 13:58:05 -08:00
Igor Zubkov
0eafe7f2fd
Fix typo
2011-12-16 12:28:29 +02:00
Jonathan Rudenberg
c4d713b6bb
Add modulo filter
2011-11-17 14:08:57 -05:00
Ryan Alyea
975b17b529
Allow filters in assign.
...
A simple attempt, but basically it shifts the parsing of the right hand side of the assign from a simple context lookup to using the Variable parser (that includes filters). Fixes #79 .
2011-11-01 01:46:26 -07:00
Jonathan Rudenberg
b816521563
Merge pull request #72 from zacstewart/patch-1
...
Correct formatting for doc comments
2011-10-15 17:25:48 -07:00
Jonathan Rudenberg
487b240404
Fix another drop call regression
2011-10-14 11:21:22 -04:00
Jonathan Rudenberg
8b5cf73ccc
Fix regression with calling a drop with a empty string
2011-10-13 11:47:23 -04:00
Zac
6cf6d8b990
Correct formatting for doc comments
...
Portions of the code examples were not being rendered as code because they lacked a leading tab. Also, a missing period on the first sentence made the first paragraph confusing.
2011-09-10 10:36:22 -03:00
7rans
cc7899aef5
Add split filter.
2011-08-31 21:28:32 -04:00
Jonathan Rudenberg
2434c3d0e0
Remove duplicate commas from StrictQuotedFragment. Closes #26 .
2011-07-12 09:18:46 -04:00
Tobias Lütke
352f83a9d2
Merge pull request #28 from mcr/mcr_inc_tag
...
increment tag
2011-07-01 11:48:13 -07:00
Tobias Lütke
98c96ed86a
Merge pull request #60 from a-team/master
...
Avoid creating singleton classes on nil, true and false objects
2011-07-01 11:43:27 -07:00
Tobias Lütke
410cce9740
Merge pull request #56 from oozou/for-else
...
For-else !!!
2011-07-01 11:42:17 -07:00
Jonathan Rudenberg
4aaf750fa8
Don't mess with the load path
2011-06-30 16:31:37 -04:00
Jonathan Rudenberg
fe25644726
Rescue NameError for Rubinius
2011-06-30 16:24:17 -04:00
Jonathan Rudenberg
c47eac1683
Add kind_of? and singleton_methods to Strainer so that Rubinius works
2011-06-30 16:17:31 -04:00
Tim Felgentreff
c7033ff4c8
Avoid creating singleton classes on nil, true and false objects. Instead extend their respective classes. Just because those objects are singletons in current Ruby implementations doesn't mean we should rely on that. Fixes liquid on Maglev.
2011-06-13 18:13:47 +02:00
Jonathan Rudenberg
f85bea2902
Remove literal tag (raw is more performant)
...
This reverts commit c00a650492 .
2011-06-13 09:34:15 -04:00
Jonathan Rudenberg
17922273e1
Merge old Shopify/liquid
2011-06-13 09:31:31 -04:00
Jonathan Rudenberg
4087a94d88
Add raw tag. Fixes #37 .
...
Thanks to phaer: https://gist.github.com/1020852
YO DAWG, WE HEARD YOU LIKE LIQUID
SO WE PUT A RAW TAG IN YOUR LIQUID
SO YOU CAN HAVE LIQUID IN YOUR LIQUID
2011-06-12 11:15:16 -04:00
Steven Soroka
1a4ff9547a
render_all should internally always return strings. This eases some 1.9 compatability issues.
2011-05-02 10:58:27 -04:00
Steven Soroka
74cdfc6718
Fix commit 7bbb4ff84f so it's backwards-compatible
2011-04-28 15:18:51 -05:00
Prathan Thananart
d19213177a
Added documentation for for-else
2011-04-28 13:11:13 +07:00
Prathan Thananart
caf59940d3
Added code to make for-else work
2011-04-28 13:07:41 +07:00
Tobias Lütke
bc55c4d348
Merged pull request #34 from claco/date-epoch.
...
Epoch support
2011-04-25 09:03:30 -07:00
Tobias Lütke
ab556cbdd9
Merged pull request #54 from mhw/fix-drop-numeric-parameter.
...
Fix passing numeric parameter to drops
2011-04-25 08:59:10 -07:00
Steven Soroka
59a63e0fe5
fix failing test "recursively_included_template_does_not_produce_endless_loop", push needs to come before exception raise since pop is in ensure block and always happens.
2011-04-24 01:09:56 -05:00
Mark H. Wilkinson
935d3530af
Handle invoking drops for keys that are not strings.
...
For example, {{ pages[8] ... }} will result in the integer value 8 being
passed to invoke_drop.
2011-04-12 14:11:06 +01:00
David Turnbull
7bbb4ff84f
Context is no longer lost when moving into a Liquid FileSystem.
2011-01-28 21:19:44 -05:00
thedarkone
f7ff9c81d3
Make use of the Module#public_method_defined?.
2011-01-28 21:16:22 -05:00
thedarkone
a65c4f51bc
These are strings already.
2011-01-28 21:16:22 -05:00
thedarkone
a24049906b
Resolve literals faster.
2011-01-28 21:16:22 -05:00
thedarkone
aa678302d6
Fix comments.
2011-01-28 21:16:22 -05:00
thedarkone
6d0bb3303c
Clean-up Context#stack.
2011-01-28 21:16:22 -05:00
Austin Mills
4fec29f288
OPS-250 Modifying liquid error handling so that it no longer captures Exceptions that are not subclasses of StandardError (previously, it was rescuing things like Interrupt and NoMemoryError).
2011-01-10 14:55:05 -06:00