Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
My template for medium-to-large Sinatra projects.
Ruby
branch: master
Failed to load latest commit information.
config add cachebusting support for assets
db/migrations re-organize
lib compile assets on startup
public re-organize
spec
tasks compile assets on startup
.gitignore
Assetfile
Gemfile sinatra-content-for2 is not needed
LICENSE
README.md Update README.md
Rakefile buildout
config.ru handle nested directories property for cache-busting

README.md

A template for medium-to-large Sinatra projects.

This repository contains my preferred full-stack Ruby toolkit, configured and ready to roll in a well-organized structure.

|-config           -- config files go here (duh)
|---template.yml   -- rename to app.yml
|-db               -- database files go here
|---migrations     -- sequel migrations go here
|-lib              -- app code goes here
|---template       -- rename folder to app name
|-----assets       -- assets go here to be pipelined
|-------css        -- css/sass files here
|-------js         -- js/coffeescript files here
|---------vendor   -- javascript libraries here
|-----classes      -- app code that is not a helper or a model goes here
|-----controllers  -- controllers/routing here
|-----helpers      -- helper functions available to templates go here
|-----models       -- data models go here
|-----views        -- page templates go here
|-----app.rb       -- sinatra config goes here
|---template.rb    -- rename to app.rb and require all dependencies / configs here
|-public           -- static files go here
|-spec             -- tests go here
|-tasks            -- rake tasks go here
|---console.rb     -- load irb with access to models/routes etc
|-config.ru        -- rackup file

Notes

Rake-pipeline's rack middleware only runs automatically during development. Assets will automatically compile at startup, but they will not dynamically recompile in production (they are cache-busted based on a hash of the version number in the project's config file).

Thanks

All the creators and contributors of the awesome tools this framework is built on.

Something went wrong with that request. Please try again.