mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
Allow variable and tag end characters to be quoted.
This commit is contained in:
@@ -89,4 +89,9 @@ class VariableTest < Minitest::Test
|
||||
def test_multiline_variable
|
||||
assert_equal 'worked', Template.parse("{{\ntest\n}}").render!('test' => 'worked')
|
||||
end
|
||||
|
||||
def test_string_with_curly_brackets
|
||||
json = '{ "key": { "nested": "value" }}'
|
||||
assert_template_result(json, "{{ '#{json}' }}")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user