Allow variable and tag end characters to be quoted.

This commit is contained in:
Dylan Thacker-Smith
2015-07-13 13:19:56 -04:00
parent b42d35ff36
commit 4a12fee1f5
3 changed files with 20 additions and 1 deletions
+5
View File
@@ -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