Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provides bare bone template for sinatra mvc development.

branch: master

Added SINATRA_ROOT to point to the root folder of the sinatra applica…

…tion.

Since this has problems with shotgun i have added Rack::Reloader in SinatraApp controller
to avoid shotgun usage.
latest commit 7f8f38b3ad
Filip Kostovski authored March 11, 2011
Octocat-spinner-32 controllers Added SINATRA_ROOT to point to the root folder of the sinatra applica… March 11, 2011
Octocat-spinner-32 helpers Initial commit March 10, 2011
Octocat-spinner-32 initializers Initial commit March 10, 2011
Octocat-spinner-32 lib Initial commit March 10, 2011
Octocat-spinner-32 models Initial commit March 10, 2011
Octocat-spinner-32 public Initial commit March 10, 2011
Octocat-spinner-32 script Initial commit March 10, 2011
Octocat-spinner-32 views Initial commit March 10, 2011
Octocat-spinner-32 .gitignore Initial commit March 10, 2011
Octocat-spinner-32 Gemfile Initial commit March 10, 2011
Octocat-spinner-32 Gemfile.lock Initial commit March 10, 2011
Octocat-spinner-32 README Removed the default readme March 10, 2011
Octocat-spinner-32 Rakefile Initial commit March 10, 2011
Octocat-spinner-32 bootloader.rb Added SINATRA_ROOT to point to the root folder of the sinatra applica… March 11, 2011
Octocat-spinner-32 config.ru Initial commit March 10, 2011
Octocat-spinner-32 development.db Initial commit March 10, 2011
README
Bare bone folder structure for mvc development with Sinatra framework.

Usage:
Create controllers in the controllers folder and map them in the config.ru. 
Create models in the models folder and use them in the controllers.
Create helpers in the helpers folder and use them in your views.
Create general purpose classes and modules in the lib folder.

All of the classes will be autoladed. 
The naming convention should be followed:
	Snakes for the names of the ruby files, cammel case for the names of the classes and modules.
All of the gems will be placed in the Gemfile and will be installed with bundle install command.
For running init tasks place ruby file in the initializers folder. Every file in the initializers
will be runned on startup.

Hapy coding!
Something went wrong with that request. Please try again.