Class: LiquidAssets::Resolver

Inherits:
ActionView::Resolver
  • Object
show all
Includes:
Singleton
Defined in:
lib/liquid_assets/resolver.rb

Instance Method Summary collapse

Instance Method Details

#find_templates(name, prefix, partial, details) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/liquid_assets/resolver.rb', line 14

def find_templates(name, prefix, partial, details)
    path = normalize_path( prefix, name )
    tmpl = Config.content_provider.call( partial_path( path, partial ) )
    if tmpl && tmpl.present?
        return [ make_template( tmpl, path, details, partial ) ]
    else
        return []
    end
end

#to_sObject



10
11
12
# File 'lib/liquid_assets/resolver.rb', line 10

def to_s
    'LiquidAssets::Resolver'
end