No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
views
.gitignore
Gemfile
Gemfile.lock
README.markdown
config.ru
helpers_errors.rb
site.rb

README.markdown

Sinatra Skeleton

Run with bundle exec ruby site.rb

The Setup

config.ru

Needs editing if you rename site.rb.

Gemfile

Comes with:

  • sinatra
  • thin
  • haml
  • sass
  • rdiscount

site.rb

  • requires the above gems.
  • Has /stylesheets/*.css route to find sass stylesheets living in the sass directory and parse them.
  • Has / route, utilizes the markdown helper.
  • Has example route for /:page
    • /:page is the name of the markdown file in ./views/content/.

Both existing routes utilize ./views/index.haml to render a page.

./views/index.haml

  • Links to /stylesheets/application.css, which renders the corresponding sass file, by default.
  • Links to the IE HTML5 shim.
  • Links to the Google Analytics file.
  • Uses the @content global to place content. site.rb, by default, uses the markdown helper to convert markdown files in ./views/content/ and place them in said global.

.gitignore

.DS_Store
.sass-cache/
.sass-cache/*