<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -293,7 +293,11 @@ Now:
 Convoluted but you get the idea.
 
 
-Author
-------
+Meta
+----
 
-{{ Chris Wanstrath }} :: {{ chris@ozmm.org }}
+* Code: `git clone git://github.com/defunkt/mustache.git`
+* Bugs: &lt;http://github.com/defunkt/mustache/issues&gt;
+* List: &lt;http://groups.google.com/group/mustache-rb&gt;
+* Test: &lt;http://runcoderun.com/defunkt/mustache&gt;
+* Boss: Chris Wanstrath :: &lt;http://github.com/defunkt&gt;</diff>
      <filename>README.md</filename>
    </modified>
    <modified>
      <diff>@@ -56,11 +56,11 @@ class Mustache
 
   # Context accessors
   def [](key)
-    context[key]
+    context[key.to_sym]
   end
 
   def []=(key, value)
-    context[key] = value
+    context[key.to_sym] = value
   end
 
   # How we turn a view object into HTML. The main method, if you will.
@@ -175,9 +175,7 @@ class Mustache
   # strings and symbols) then call methods on the view object.
   def find(name)
     name.strip!
-    if @context.has_key? name
-      @context[name]
-    elsif @context.has_key? name.to_sym
+    if @context.has_key? name.to_sym
       @context[name.to_sym]
     elsif respond_to? name
       send name</diff>
      <filename>lib/mustache.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,18 +1,37 @@
-# Support for Mustache in your Sinatra app.
-#
-# require 'mustache/sinatra'
-#
-# class App &lt; Sinatra::Base
-#   include Mustache::Sinatra
-# end
+=begin
+Support for Mustache in your Sinatra app.
+
+  require 'mustache/sinatra'
+
+  class App &lt; Sinatra::Base
+    helpers Mustache::Sinatra
+
+    get '/stats' do
+      mustache :stats
+    end
+  end
+
+If a `Views::Stats` class exists in the above example,
+Mustache will try to instantiate and use it for the rendering.
+
+If no `Views::Stats` class exists Mustache will render the template
+file directly.
+
+You can indeed use layouts with this library. Where you'd normally
+&lt;%= yield %&gt; you instead {{yield}} - the body of the subview is
+set to the `yield` variable and made available to you.
+=end
 require 'mustache'
 
 class Mustache
   module Sinatra
+    # Call this in your Sinatra routes.
     def mustache(template, options={}, locals={})
       render :mustache, template, options, locals
     end
 
+    # This is called by Sinatra's `render` with the proper paths
+    # and, potentially, a block containing a sub-view
     def render_mustache(template, data, options, locals, &amp;block)
       name = Mustache.new.classify(template.to_s)
 
@@ -26,6 +45,8 @@ class Mustache
         instance[local] = value
       end
 
+      # If we're paseed a block it's a subview. Sticking it in yield
+      # lets us use {{yield}} in layout.html to render the actual page.
       instance[:yield] = block.call if block
 
       instance.template = data</diff>
      <filename>lib/mustache/sinatra.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,5 @@
 require 'test/unit'
 
-begin
-  # you know, for kids
-  require 'redgreen'
-rescue LoadError
-  nil
-end
-
 $LOAD_PATH.unshift File.dirname(__FILE__) + '/../examples'
 require 'simple'
 require 'complex_view'</diff>
      <filename>test/mustache_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc4ef1a6edd264d141381186c77ac8eee2d27142</id>
    </parent>
    <parent>
      <id>49cf90c742f63a0054759a3de00701e215449d71</id>
    </parent>
  </parents>
  <author>
    <name>Jan-Erik Rediger</name>
    <email>badboy@archlinux.us</email>
  </author>
  <url>http://github.com/badboy/mustache/commit/6a38d6e168488e36c17516bb6a2dd83615cfd6a5</url>
  <id>6a38d6e168488e36c17516bb6a2dd83615cfd6a5</id>
  <committed-date>2009-10-05T04:25:43-07:00</committed-date>
  <authored-date>2009-10-05T04:25:43-07:00</authored-date>
  <message>Merge branch 'master' of git://github.com/defunkt/mustache into defunkt</message>
  <tree>a791893723a6be10a0c100abf84a416a625fb9a6</tree>
  <committer>
    <name>Jan-Erik Rediger</name>
    <email>badboy@archlinux.us</email>
  </committer>
</commit>
