Merge pull request #1494 from maul-esel/fix-include-error
Fix include tag to avoid NameError
This commit is contained in:
commit
47f7832747
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue