mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Allow liquid tag inside liquid tag
This commit is contained in:
@@ -113,4 +113,15 @@ class LiquidTagTest < Minitest::Test
|
||||
{% raw %}{% liquid echo 'test' %}{% endraw %}
|
||||
LIQUID
|
||||
end
|
||||
|
||||
def test_nested_liquid_tags
|
||||
assert_template_result('good', <<~LIQUID)
|
||||
{%- liquid
|
||||
liquid
|
||||
if true
|
||||
echo "good"
|
||||
endif
|
||||
-%}
|
||||
LIQUID
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user