Resolve conflict

This commit is contained in:
Anatol Broder 2013-09-16 08:15:10 +02:00
parent 79c2d5c8f7
commit 79f50b0568
1 changed files with 6 additions and 2 deletions

View File

@ -55,7 +55,7 @@ eos
return error
end
source = File.read(File.join(includes_dir, @file))
source = read_file(File.join(includes_dir, @file))
partial = Liquid::Template.parse(source)
context.stack do
@ -77,13 +77,17 @@ eos
if !File.exists?(file)
return "Included file #{@file} not found in _includes directory"
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
def blank?
false
end
def read_file(file)
return File.read(file)
end
end
end
end