Skip to content
Package your assets transparently in Sinatra.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Sinatra AssetPack

Asset packer for Sinatra

This is the most convenient way to set up your CSS/JS (and images) in a Sinatra app. Seriously. No need for crappy routes to render Sass or whatever. No-siree!

  1. Drop your JavaScript/CoffeeScript files in /app/js
  2. Drop your CSS/sass/less/scss files in /app/css
  3. Add register Sinatra::AssetPack and set up options to your app
  4. Use <%= css :application %> to your layouts instead of messy
Something went wrong with that request. Please try again.