An example of using Mustache in a Sinatra app.
Ruby
Pull request Compare This branch is 40 commits ahead, 20 commits behind yebyen:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.bundle
bin
lib
out @ 2e9fd59
templates
views
.gitignore
.gitmodules
@doc.html
Gemfile
Gemfile.lock
INVENTORY-REPORT-FOR-BOTH-WAREHOUSES.XLS
INVENTORY-REPORT-FOR-BOTH-WAREHOUSES.XLS.htm
INVENTORY-REPORT-FOR-BOTH-WAREHOUSES.xls
INVENTORY.html
INVENTORY.xls
README.md
app.rb
config.ru
cookies.txt

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.