Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
An example of using Mustache in a Sinatra app.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
templates basic partial
views Index should inherit from Layout, which we need to require
Gemfile bundler
Gemfile.lock bundler
README.md bundler
app.rb Upgrade to Sinatra 1.0, Mustache 0.9.0
config.ru mustache!

README.md

A Mustache Sinatra Example

Get started:

$ git clone http://github.com/defunkt/mustache-sinatra-example
$ cd mustache-sinatra-example
$ gem install bundler
$ bundle install
$ bundle exec shotgun -O config.ru

Or browser to http://localhost:9393 by hand.

Note that we use a templates and a views directory. You don't have to. By default the views and templates will live in the views directory together.

Enjoy.

Something went wrong with that request. Please try again.