Sha256: 6fa8746a30b626b73feaad5eccf1b5ef52a1e563648921631b17c636b367eefe
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true module Helpers # Sprockets view helpers. # module Sprockets def stylesheet_tag(name) folder = 'production' == ENV['RACK_ENV'] ? 'css' : 'assets' "<link href='/#{folder}/#{name}.css' rel='stylesheet' type='text/css' />" end def javascript_tag(name) folder = 'production' == ENV['RACK_ENV'] ? 'js' : 'assets' "<script type='text/javascript' src='/#{folder}/#{name}.js'></script>" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hoboken-0.9.0 | lib/hoboken/templates/sprockets_helper.rb |