Fixed tests and include tag code to use register's file_system

This commit is contained in:
James Reid-Smith
2014-09-12 02:06:45 +00:00
parent b765343ee2
commit 5077463ec6
2 changed files with 5 additions and 10 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ module Liquid
if cached = cached_partials[template_name]
cached
else
if @partial && context.registers[:file_system].nil?
if @partial
partial = @partial
else
partial = Liquid::Template.parse(read_template_from_file_system(context), pass_options)
@@ -85,7 +85,7 @@ module Liquid
end
def read_template_from_file_system(context)
file_system = context.registers[:file_system] || parsed_file_system || Liquid::Template.file_system
file_system = context.registers[:file_system] || Liquid::Template.file_system
file_system.read_template_file(context[@template_name])
end