Sha256: 27b1582278202cf445a293923f0d1a6dc53704e72c1c540dcf3e0ef0a3cb42cc
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
$:.unshift File.expand_path('../../lib', __FILE__) require 'sinatra/base' require 'sinatra/assetpack' class App < Sinatra::Base set :root, File.dirname(__FILE__) register Sinatra::AssetPack assets do js :main, '/js/main.js', [ '/js/vendor/*.js', '/js/app.js' ] css :main, '/css/main.css', [ '/css/*.css' ] end get '/' do erb :index end end if __FILE__ == $0 App.run! end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-assetpack-0.0.5 | example/app.rb |