Merge pull request #1525 from zerobase/issue1519

Force rendering of Include tag. Fixes #1519.
This commit is contained in:
Parker Moore 2013-09-11 20:43:37 -07:00
commit 5c23ae158e
2 changed files with 21 additions and 0 deletions

View File

@ -80,6 +80,10 @@ eos
return "The included file '_includes/#{@file}' should not be a symlink" return "The included file '_includes/#{@file}' should not be a symlink"
end end
end end
def blank?
false
end
end end
end end
end end

View File

@ -436,5 +436,22 @@ CONTENT
assert_match "<span id='include-param' />", @result assert_match "<span id='include-param' />", @result
end end
end end
context "without parameters within if statement" do
setup do
content = <<CONTENT
---
title: without parameters within if statement
---
{% if true %}{% include params.html %}{% endif %}
CONTENT
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
end
should "include file with empty parameters within if statement" do
assert_match "<span id='include-param' />", @result
end
end
end end
end end