Liquid has UTF8 support.

This commit is contained in:
Adam Tanner
2012-12-26 18:14:36 -08:00
parent 50bd34fd78
commit 0b36540b78
13 changed files with 50 additions and 9 deletions
+4
View File
@@ -7,6 +7,10 @@ class CaptureTest < Test::Unit::TestCase
assert_template_result("test string", "{% capture 'var' %}test string{% endcapture %}{{var}}", {})
end
def test_captures_block_content_in_utf8_variable
assert_template_result("test string", "{% capture var\u6000 %}test string{% endcapture %}{{var\u6000}}", {})
end
def test_capture_to_variable_from_outer_scope_if_existing
template_source = <<-END_TEMPLATE
{% assign var = '' %}