Skip to content

Instantly share code, notes, and snippets.

@buzzedword buzzedword/js.rb
Created Mar 21, 2011

Embed
What would you like to do?
Javascript routing file using CoffeeScript in Monk
class Main
get "/js/:application.js" do
content_type "text/javascript", :charset => "UTF-8"
CoffeeScript.compile File.read("app/views/js/#{params[:application]}.coffee")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.