lib/locomotive/liquid/filters/html.rb
def javascript_url(input)
          return '' if input.nil?

          unless input =~ /^(\/|https?:)/
            input = asset_url("javascripts/#{input}")
          end

          input = "#{input}.js" unless input.ends_with?('.js')

          input
        end
# Write the url to javascript resource
# input: name of the javascript file
Write the url to javascript resource
input: name of the javascript file
Write the url to javascript resource input : name of the javascript file
def javascript_url(input)
          return '' if input.nil?
          unless input =~ /^(\/|https?:)/
            input = asset_url("javascripts/#{input}")
          end
          input = "#{input}.js" unless input.ends_with?('.js')
          input
        end
def javascript_url ( input ) return '' if input . nil? unless input =~ / ^( \/ |https?:) / input = asset_url ( "javascripts/#{input}" ) end input = "#{input}.js" unless input . ends_with? ( '.js' ) input end
Write the url to javascript resource
input: name of the javascript file
Write the url to javascript resource input : name of the javascript file
input