Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 26, 2010
  1. @defunkt

    v0.9.0

    defunkt authored
  2. @defunkt
  3. @defunkt
  4. @defunkt
  5. @defunkt
  6. @defunkt

    Sinatra 1.0 support

    defunkt authored
    Please note that the configuration options have changed! Previously
    you'd do something like this:
    
      set :namespace, Hurl
      set :views, "templates/"
      set :mustaches, "views/"
    
    Terribly confusing. Now you do this:
    
      set :mustache, {
        :namespace => Hurl,
        :views     => "views/",
        :templates => "templates/"
      }
    
    Here's how I upgraded the Sinatra example to use Sinatra 1.0 and this
    new version of Mustache:
    
    http://github.com/defunkt/mustache-sinatra-example/commit/6e0d207823a314190cdaf63c10a8d23effd6fd90
    
    Also note that layouts now work way better. If you view class is a
    subclass of your layout, the view will be used to render the layout's
    template. So you can override things in the layout:
    
        class Layout < Mustache
          def title
            "layout"
          end
        end
    
        class Index < Layout
          def title
            "index"
          end
        end
    
    In your layout.mustache:
    
        <html>
        <title>{{title}}</title>
        </html>
    
    Now, back in Sinatra land, calling this:
    
    mustache :index
    
    Will render this:
    
        <html>
        <title>index</title>
        </html>
    
    Enjoy.
  7. @defunkt
  8. @defunkt

    big release

    defunkt authored
  9. @defunkt

    Note on caching

    defunkt authored
  10. @defunkt
  11. @defunkt
  12. @defunkt

    some parser comments

    defunkt authored
  13. @defunkt

    Some Generator comments

    defunkt authored
Commits on Mar 25, 2010
  1. @defunkt
  2. @defunkt

    {{{{invalid}}}}

    defunkt authored
  3. @defunkt

    Allow - in tag names

    defunkt authored
  4. @defunkt
  5. @defunkt
  6. @defunkt
  7. @judofyr @defunkt

    Ensure push'd context is pop'd after rendering

    judofyr authored defunkt committed
  8. @defunkt
  9. @defunkt
  10. @judofyr @defunkt

    New parser.

    judofyr authored defunkt committed
  11. @defunkt
  12. @defunkt

    arg

    defunkt authored
  13. @defunkt

    ronn

    defunkt authored
  14. @defunkt

    v0.7.0

    defunkt authored
Commits on Mar 18, 2010
  1. @defunkt

    build:man => man:build

    defunkt authored
  2. @defunkt

    mention & in the manual

    defunkt authored
  3. @defunkt
Commits on Mar 13, 2010
  1. @defunkt

    Provide mustache-mode so Emacs will load the mode without errors

    Kevin Ingolfsland authored defunkt committed
  2. @defunkt
  3. @defunkt

    hash.yml example

    defunkt authored
Commits on Mar 11, 2010
  1. @defunkt

    add a hash example

    defunkt authored
  2. @defunkt

    real example

    defunkt authored
Something went wrong with that request. Please try again.