Allow quoted single curly braces in variables.

This commit is contained in:
Dylan Thacker-Smith
2014-03-21 02:04:01 -04:00
parent af24d2c2ab
commit 3682414cc4
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -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