zeus.ugent.be/lib/helpers/assets.rb

9 lines
245 B
Ruby
Raw Normal View History

2016-08-04 19:06:36 +02:00
module AssetHelper
def asset(type, identifier)
{
js: "<script src='/assets/scripts/#{identifier}.js'></script>",
css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>"
}[type]
end
end