use Lua style syntax

This commit is contained in:
Sam Doiron
2021-01-29 16:56:45 -05:00
parent 5dcce427d0
commit f331204f7c
2 changed files with 2 additions and 2 deletions

View File

@@ -10,6 +10,6 @@ module Liquid
end
end
Template.register_tag('#', InlineComment)
Template.register_tag('--', InlineComment)
end

View File

@@ -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!