zeus.ugent.be/lib/helpers/assets.rb
Lorin Werthen de36420195
helpers
2016-08-04 19:06:36 +02:00

8 lines
245 B
Ruby

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