Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.445 kb
require 'sinatra/base'
require 'mustache/sinatra'
class App < Sinatra::Base
register Mustache::Sinatra
require 'views/layout'
set :mustache, {
:views => 'views/',
:templates => 'templates/'
}
get '/' do
@title = "Mustache + Sinatra = Wonder"
mustache :index
end
get '/other' do
mustache :other
end
get '/nolayout' do
content_type 'text/plain'
mustache :nolayout, :layout => false
end
end
Jump to Line
Something went wrong with that request. Please try again.