engine/lib/locomotive/liquid/drops/stylesheets.rb

21 lines
462 B
Ruby
Raw Normal View History

module Locomotive
module Liquid
module Drops
class Stylesheets < ::Liquid::Drop
def initialize(site)
@site = site
end
def before_method(meth)
@context.registers[:theme_uploader].store_path(meth.gsub('__', '.'))
# asset = @site.theme_assets.where(:content_type => 'stylesheet', :slug => meth.to_s).first
# !asset.nil? ? asset.source.url : nil
end
end
end
end
end