a patch for the issue: [Liquid doesn't render my partial · Issue #1519 · mojombo/jekyll](https://github.com/mojombo/jekyll/issues/1519)

This commit is contained in:
Ishibashi Hideto 2013-09-10 23:12:15 +09:00
parent 94e001e549
commit 421e58ad59
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"
end
end
def blank?
false
end
end
end
end

View File

@ -436,5 +436,22 @@ CONTENT
assert_match "<span id='include-param' />", @result
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