Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stub documentation

  • Loading branch information...
commit ee93e4134cf101b8b68ee569b708b22347401661 1 parent 5a418e8
@peteog authored
Showing with 36 additions and 0 deletions.
  1. +36 −0 README.md
View
36 README.md
@@ -1 +1,37 @@
# Sinatra Simple Assets
+
+ # Gemfile
+ gem 'sinatra-simple-assets', :require => 'sinatra/simple_assets'
+
+ # Sinatra app
+ register Sinatra::SimpleAssets
+
+ assets do
+ css :application, [
+ '/stylesheets/bootstrap.css',
+ '/stylesheets/application.css'
+ ]
+ js :application, [
+ '/javascripts/bootstrap-modal.js',
+ '/javascripts/bootstrap-dropdown.js',
+ '/javascripts/bootstrap-scrollspy.js',
+ '/javascripts/bootstrap-buttons.js',
+ '/javascripts/bootstrap-tabs.js',
+ '/javascripts/bootstrap-twipsy.js',
+ '/javascripts/bootstrap-popover.js',
+ '/javascripts/bootstrap-alerts.js',
+ '/javascripts/application.js'
+ ]
+ end
+
+ # Views
+ <%= javascript :application %>
+ <%= stylesheet :application %>
+
+ # Rakefile
+ namespace :assets do
+ desc 'Precompile assets'
+ task :precompile do
+ App.assets.precompile
+ end
+ end

0 comments on commit ee93e41

Please sign in to comment.
Something went wrong with that request. Please try again.