Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.
/ sinatra-base Public archive

A preconfigured Sinatra app with: Sinatra::Contrib, Haml, Sass, Compass and CoffeeScript

Notifications You must be signed in to change notification settings

daneharrigan/sinatra-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hopefully this is the last time I'll setup a Sinatra app.

This setup has the following:

  • Sinatra::Contrib
  • Haml
  • Sass (using SCSS syntax)
  • Compass
  • CoffeeScript

The directory structure is very Rails-ish and I like that.

Routes are in controllers named with their purpose:

app/controllers/people_controller.rb
app/controllers/locations_controllers.rb

The root_controller.rb that is mapped to "/". An file *_controller.rb in app/controllers gets loaded automatically.

Getting it running!

I didn't commit the Gemfile.lock intentionally so you'll need to run bundle. This way you'll always get the latest version of the gems used. Launch the app and get started bundle exec rackup

About

A preconfigured Sinatra app with: Sinatra::Contrib, Haml, Sass, Compass and CoffeeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages