Elegant way to code generated coffeescript in ruby? -


i have following converts coffeescript when ...../coffee/xxxx.js called. example trying load variables compliments script loaded. should load in separate js file or elegant way of injecting coffee script well?

get "/coffee/*.js"     filename = params[:splat].first     coffee "../public/coffee/#{filename}".to_sym end 


Comments