mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 18:30:40 -07:00
Allow quoted single curly braces in variables.
This commit is contained in:
@@ -201,4 +201,8 @@ class VariableResolutionTest < Test::Unit::TestCase
|
||||
def test_multiline_variable
|
||||
assert_equal 'worked', Template.parse("{{\ntest\n}}").render!('test' => 'worked')
|
||||
end
|
||||
|
||||
def test_quoted_single_curly_braces
|
||||
assert_template_result "{user}", "{{ variable | prepend: '{' | append: '}' }}", 'variable' => 'user'
|
||||
end
|
||||
end # VariableTest
|
||||
|
||||
Reference in New Issue
Block a user