Fix include tag to avoid NameError

This commit is contained in:
maul.esel 2013-09-02 14:25:13 +02:00
parent 2cc5dc3704
commit 09ed340835
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ eos
def render(context)
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))
partial = Liquid::Template.parse(source)