16 lines
268 B
Ruby
16 lines
268 B
Ruby
|
#!/usr/bin/env ruby
|
||
|
|
||
|
require 'sinatra'
|
||
|
require 'coffee-script'
|
||
|
require 'slim'
|
||
|
require 'sass'
|
||
|
|
||
|
get('/application.css') { scss :application }
|
||
|
|
||
|
get('/') { slim :index }
|
||
|
|
||
|
%i{nurikabe}.each do |game|
|
||
|
get("/#{game}") { slim game }
|
||
|
get("/#{game}.js") { coffee game }
|
||
|
end
|