public
Description: An example of using Mustache in a Sinatra app.
Homepage:
Clone URL: git://github.com/defunkt/mustache-sinatra-example.git
tekkub (author)
Wed Nov 11 22:12:06 -0800 2009
defunkt (committer)
Mon Nov 23 10:08:34 -0800 2009
name age message
file README.md Fri Oct 09 09:32:17 -0700 2009 views and templates live together by default [defunkt]
file app.rb Sun Nov 01 13:31:52 -0800 2009 nolayout example [defunkt]
file config.ru Fri Oct 09 09:26:00 -0700 2009 mustache! [defunkt]
directory templates/ Mon Nov 23 10:08:34 -0800 2009 Helps to have a nolayout template... [tekkub]
directory views/ Tue Oct 27 11:22:26 -0700 2009 add layout example [defunkt]
README.md

A Mustache Sinatra Example

Get started:

$ gem install mustache
$ git clone git://github.com/defunkt/mustache-sinatra-example.git
$ cd mustache-sinatra-example
$ rackup config.ru
$ open http://localhost:9292

Or browser to http://localhost:9292 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.

Chris Wanstrath :: chris@ozmm.org