An example of using Mustache in a Sinatra app.
Ruby
Latest commit bb38034 Jun 5, 2011 @defunkt bundler
Failed to load latest commit information.
templates basic partial Mar 26, 2010
views Index should inherit from Layout, which we need to require Dec 7, 2009
Gemfile bundler Jun 5, 2011
Gemfile.lock bundler Jun 5, 2011
README.md bundler Jun 5, 2011
app.rb Upgrade to Sinatra 1.0, Mustache 0.9.0 Mar 26, 2010
config.ru mustache! Oct 9, 2009

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.