lib/locomotive/liquid/filters/html.rb
# Write the url to a stylesheet resource
# input: name of the css file
Write the url to a stylesheet resource
input: name of the css file
Write the url to a stylesheet resource input : name of the css file
def stylesheet_url(input)
          return '' if input.nil?
          unless input =~ /^(\/|https?:)/
            input = asset_url("stylesheets/#{input}")
          end
          input = "#{input}.css" unless input.ends_with?('.css')
          input
        end
def stylesheet_url ( input ) return '' if input . nil? unless input =~ / ^( \/ |https?:) / input = asset_url ( "stylesheets/#{input}" ) end input = "#{input}.css" unless input . ends_with? ( '.css' ) input end
Write the url to a stylesheet resource
input: name of the css file
Write the url to a stylesheet resource input : name of the css file
input