Class: Liquid::Rails::FileSystem

Inherits:
LocalFileSystem show all
Defined in:
lib/liquid-rails/file_system.rb

Instance Method Summary collapse

Instance Method Details

#read_template_file(template_path, context) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/liquid-rails/file_system.rb', line 6

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