Sinatra is a lightweight library whose goal is to stay away from your path, leaving the door open for you to include or create what you need for each project.
However, you can easily create your own MVC on top of Sinatra and enable ActiveRecord, DataMapper, Sequel, etc. for their models. Here is a sample structure -
βββ Gemfile
βββ README.md
βββ app
β βββ controllers
β β βββ application_controller.rb
β βββ models
β β βββ model.rb
β βββ views
β βββ index.erb
βββ config
β βββ environment.rb
βββ config.ru
βββ public
β βββ stylesheets
βββ spec
βββ controllers
βββ features
βββ models
βββ spec_helper.rb
Gemfile - where all your gems go.
- MVC - , .
- .
- , , .
- , .
config.ru - config.ru -/ (ru rackup).
Config Directory - w/ environment.rb fileto .
Public Directory - - CSS/JS/Images ..
- .