Sha256: 0478a0f9ce9e3dc8e2fec28b5cd1eefcb7ed757cbc0280e3d934206032bfd403
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
require 'sinatra/base' require 'sinatra/assetpack' require 'sinatra/backbone' require 'sinatra/support' require 'compass' require 'zurb-foundation' module Helios class Frontend < Sinatra::Base set :root, File.join(File.dirname(__FILE__), "frontend") register Sinatra::CompassSupport register Sinatra::AssetPack register Sinatra::JstPages assets do serve '/javascripts', from: '/javascripts' serve '/stylesheets', from: '/stylesheets' serve '/images', from: '/images' js :application, 'javascripts/application.js', [ 'javascripts/vendor/jquery.js', 'javascripts/vendor/underscore.js', 'javascripts/vendor/backbone.js', 'javascripts/vendor/backbone.datagrid.js', 'javascripts/foundation/foundation.js', 'javascripts/foundation/*', #'/javascripts/templates.js', 'javascripts/helios.js', #'/javascripts/helios/*' 'javascripts/helios/models.js', 'javascripts/helios/collections.js', 'javascripts/helios/templates.js', 'javascripts/helios/views.js', 'javascripts/helios/router.js', ] css :application, 'stylesheets/application.css', [ 'stylesheets/screen.css' ] end serve_jst '/javascripts/helios/templates.js' get '' do redirect request.fullpath + "/" end get '/' do content_type :html haml :index end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helios-0.0.4 | ./lib/helios/frontend.rb |