Class: LiquidAssets::LiquidFileSystem

Inherits:
Liquid::LocalFileSystem
  • Object
show all
Defined in:
lib/liquid_assets/liquid_file_system.rb

Instance Method Summary collapse

Constructor Details

#initializeLiquidFileSystem



5
6
7
# File 'lib/liquid_assets/liquid_file_system.rb', line 5

def initialize
    super( Config.template_root_path )
end

Instance Method Details

#read_template_file(template_path, context) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/liquid_assets/liquid_file_system.rb', line 10

def read_template_file( template_path, context )
    tmpl = Config.content_provider.call( Resolver.convert_path_to_partial( template_path.dup ) )
    if tmpl && tmpl.present?
        return tmpl.source
    else
        return super
    end
end