Merge pull request #1494 from maul-esel/fix-include-error

Fix include tag to avoid NameError
This commit is contained in:
Matt Rogers 2013-09-05 13:21:19 -07:00
commit 47f7832747
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ eos
def render(context) def render(context)
includes_dir = File.join(context.registers[:site].source, '_includes') includes_dir = File.join(context.registers[:site].source, '_includes')
return error if error = validate_file(includes_dir) if error = validate_file(includes_dir)
return error
end
source = File.read(File.join(includes_dir, @file)) source = File.read(File.join(includes_dir, @file))
partial = Liquid::Template.parse(source) partial = Liquid::Template.parse(source)