nikoli/nikoli.rb

16 lines
268 B
Ruby
Executable File

#!/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