Implement the inline comment tag

This commit is contained in:
Dylan Thacker-Smith
2021-02-24 09:28:17 -05:00
parent 31f7be8a6d
commit fff6c565c1
3 changed files with 39 additions and 2 deletions
@@ -0,0 +1,22 @@
# frozen_string_literal: true
require 'test_helper'
class InlineCommentTest < Minitest::Test
include Liquid
def test_tag
assert_template_result('', '{% # This text gets ignored %}')
end
def test_inside_liquid_tag
source = <<~LIQUID
{%- liquid
echo "before("
# This text gets ignored
echo ")after"
-%}
LIQUID
assert_template_result('before()after', source)
end
end