mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -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
|
||||
class Comment < Raw
|
||||
class Comment < Block
|
||||
def render(context)
|
||||
''
|
||||
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%}{%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')
|
||||
|
||||
Reference in New Issue
Block a user