mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 15:15:19 -07:00
Revert "Merge pull request #256 from Shopify/unknown_tags_in_comments"
This reverts commit1ae8c0e90a, reversing changes made to01d352bc51.
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
require "liquid/tags/raw"
|
|
||||||
|
|
||||||
module Liquid
|
module Liquid
|
||||||
class Comment < Raw
|
class Comment < Block
|
||||||
def render(context)
|
def render(context)
|
||||||
''
|
''
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -34,12 +34,6 @@ class StandardTagTest < Test::Unit::TestCase
|
|||||||
assert_template_result('','{%comment%}comment{%endcomment%}')
|
assert_template_result('','{%comment%}comment{%endcomment%}')
|
||||||
assert_template_result('','{% comment %}comment{% endcomment %}')
|
assert_template_result('','{% comment %}comment{% endcomment %}')
|
||||||
|
|
||||||
assert_template_result('','{%comment%}{%blabla%}{%endcomment%}')
|
|
||||||
assert_template_result('','{% comment %}{% blabla %}{% endcomment %}')
|
|
||||||
assert_template_result('','{%comment%}{% endif %}{%endcomment%}')
|
|
||||||
assert_template_result('','{% comment %}{% endwhatever %}{% endcomment %}')
|
|
||||||
assert_template_result('','{% comment %} {{ %} {{%%%}} {% endcomment {% endcomment %}')
|
|
||||||
|
|
||||||
assert_template_result('foobar','foo{%comment%}comment{%endcomment%}bar')
|
assert_template_result('foobar','foo{%comment%}comment{%endcomment%}bar')
|
||||||
assert_template_result('foobar','foo{% comment %}comment{% endcomment %}bar')
|
assert_template_result('foobar','foo{% comment %}comment{% endcomment %}bar')
|
||||||
assert_template_result('foobar','foo{%comment%} comment {%endcomment%}bar')
|
assert_template_result('foobar','foo{%comment%} comment {%endcomment%}bar')
|
||||||
|
|||||||
Reference in New Issue
Block a user