2013-02-26から1日間の記事一覧

sinatraでcoffee-scriptをはじめてみる

準備 あらかじめ、Node.jsをインストールしておいてください。 % gem install sinatra coffee-script ソースコード 必要最小限のコード量になっています。 hello.rb require 'sinatra' require 'coffee-script' get '/hello.js' do coffee :hello end get '/…