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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

c++ - How to test/verify that zero-initialization takes place -

node.js - Webpack/TypeScript Raising Errors When node_modules is Excluded -