Sha256: cb58cfb65500179c9b96bc3eb74f4fea434c9e242f5a13cdb8634ca4da5d0bd1
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
require 'packr' require 'sinatra' module Terminus class Application < Sinatra::Base ROOT = File.expand_path('../..', __FILE__) set :static, true set :root, ROOT + '/terminus' helpers do def bootstrap Packr.pack(erb(:bootstrap), :shrink_vars => true) end end get '/' do erb :index end get '/bootstrap.js' do headers 'Content-Type' => 'text/javascript' bootstrap end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
terminus-0.6.0 | lib/terminus/application.rb |
terminus-0.5.0 | lib/terminus/application.rb |