Check out the Mustache class documentation. You can view it as
comments in the code or online at:
http://defunkt.github.com/mustache/
The most basic example is as follows:
class App
def call(env)
view = Mustache.new
view[:content] = 'Hello world!'
view.template = '<b>{{content}}</b>'
response = Rack::Response.new
response.header['Content-Type'] = 'text/html'
response.write view.render
response.finish
end
end
I've been meaning to write a Mustache Usage Guide which walks you
through setting up Mustache in your own project from scratch, complete
with view and template paths. Would that be more helpful?
--
Chris Wanstrath
http://github.com/defunkt