mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
use Lua style syntax
This commit is contained in:
@@ -10,6 +10,6 @@ module Liquid
|
||||
end
|
||||
end
|
||||
|
||||
Template.register_tag('#', InlineComment)
|
||||
Template.register_tag('--', InlineComment)
|
||||
end
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ class InlineCommentTest < Minitest::Test
|
||||
|
||||
def test_basic_usage
|
||||
template_source = <<-END_TEMPLATE
|
||||
foo{% # this is a comment %}bar
|
||||
foo{% -- this is a comment %}bar
|
||||
END_TEMPLATE
|
||||
template = Template.parse(template_source)
|
||||
rendered = template.render!
|
||||
|
||||
Reference in New Issue
Block a user