zeus.ugent.be/lib/helpers/assets.rb
2016-08-23 22:04:48 +02:00

9 lines
301 B
Ruby

module AssetHelper
def asset(type, identifier)
{
img: "<img src='/assets/images/#{identifier}'/>",
js: "<script src='/assets/scripts/#{identifier}.js'></script>",
css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>"
}[type]
end
end