liquid 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/liquid/tags/assign.rb +3 -3
- data/lib/liquid/tags/capture.rb +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
data/lib/liquid/tags/assign.rb
CHANGED
@@ -6,7 +6,7 @@ module Liquid
|
|
6
6
|
#
|
7
7
|
# You can then use the variable later in the page.
|
8
8
|
#
|
9
|
-
# {{
|
9
|
+
# {{ foo }}
|
10
10
|
#
|
11
11
|
class Assign < Tag
|
12
12
|
Syntax = /(#{VariableSignature}+)\s*=\s*(#{QuotedFragment}+)/
|
@@ -23,11 +23,11 @@ module Liquid
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def render(context)
|
26
|
-
context.scopes.last[@to
|
26
|
+
context.scopes.last[@to] = context[@from]
|
27
27
|
''
|
28
28
|
end
|
29
29
|
|
30
30
|
end
|
31
31
|
|
32
32
|
Template.register_tag('assign', Assign)
|
33
|
-
end
|
33
|
+
end
|
data/lib/liquid/tags/capture.rb
CHANGED
@@ -6,7 +6,7 @@ module Liquid
|
|
6
6
|
# Monkeys!
|
7
7
|
# {% endcapture %}
|
8
8
|
# ...
|
9
|
-
# <h1>{{
|
9
|
+
# <h1>{{ heading }}</h1>
|
10
10
|
#
|
11
11
|
# Capture is useful for saving content for use later in your template, such as
|
12
12
|
# in a sidebar or footer.
|
@@ -26,7 +26,7 @@ module Liquid
|
|
26
26
|
|
27
27
|
def render(context)
|
28
28
|
output = super
|
29
|
-
context[@to] = output.join
|
29
|
+
context.scopes.last[@to] = output.join
|
30
30
|
''
|
31
31
|
end
|
32
32
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 3
|
10
|
+
version: 2.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Luetke
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-05 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|