Sha256: 6e85f41f463c772974b8419ecd83f83af8438192a349325dbef3ead875bd6083
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
require 'bundler/setup' require 'sinatra' def send_kryo_file path file = File.join(File.dirname(__FILE__), 'public', path) file = File.join(file, 'index.html') unless file =~ /\.[a-z]+$/i send_file(file) end get(/.+/) do send_kryo_file(request.path) end not_found do send_file('404.html') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kryo-0.0.2 | lib/kryo/generators/site/templates/config.rb.erb |