lib/liquid-rails/file_system.rb
require 'liquid/file_system'
module Liquid
module Rails
class FileSystem < ::Liquid::LocalFileSystem
def read_template_file(template_path, context)
unless template_path.include?('/')
controller_path = context.registers[:controller].controller_path
template_path = "#{controller_path}/#{template_path}"
end
super
end
end
end
end