mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03: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