Added possibility to use https in js and css url with liquid tags

This commit is contained in:
Petr Blaho 2011-07-19 23:00:58 +02:00
parent 18d3c5c591
commit a491b15801

View File

@ -8,7 +8,7 @@ module Locomotive
def stylesheet_url(input)
return '' if input.nil?
unless input =~ /^(\/|http:)/
unless input =~ /^(\/|https?:)/
input = asset_url("stylesheets/#{input}")
end
@ -32,7 +32,7 @@ module Locomotive
def javascript_url(input)
return '' if input.nil?
unless input =~ /^(\/|http:)/
unless input =~ /^(\/|https?:)/
input = asset_url("javascripts/#{input}")
end