Sha256: e96faf110906b4aed1c5aa7d1a069a0f6ccb26a5b275ad4290dae2c14faf1557
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
terminus-0.4.0 | lib/terminus/application.rb |