Resolve conflict
This commit is contained in:
parent
79c2d5c8f7
commit
79f50b0568
|
@ -55,7 +55,7 @@ eos
|
||||||
return error
|
return error
|
||||||
end
|
end
|
||||||
|
|
||||||
source = File.read(File.join(includes_dir, @file))
|
source = read_file(File.join(includes_dir, @file))
|
||||||
partial = Liquid::Template.parse(source)
|
partial = Liquid::Template.parse(source)
|
||||||
|
|
||||||
context.stack do
|
context.stack do
|
||||||
|
@ -77,13 +77,17 @@ eos
|
||||||
if !File.exists?(file)
|
if !File.exists?(file)
|
||||||
return "Included file #{@file} not found in _includes directory"
|
return "Included file #{@file} not found in _includes directory"
|
||||||
elsif File.symlink?(file)
|
elsif File.symlink?(file)
|
||||||
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?
|
def blank?
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def read_file(file)
|
||||||
|
return File.read(file)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue