Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jun 24, 2015
  1. @locks

    Merge pull request #207 from evilstreak/bump-to-v1-0-2

    locks authored
    Version bump - v1.0.2
  2. @evilstreak

    Version bump - v1.0.2

    evilstreak authored
Commits on May 16, 2015
  1. @locks

    Merge pull request #205 from evilstreak/master

    locks authored
    Cache compiled templates for partials
Commits on Apr 21, 2015
  1. @evilstreak

    Cache template objects for partials

    evilstreak authored
    The mustache manual shows partials being used like:
    
    ```
    base.mustache:
    <h2>Names</h2>
    {{#names}}
      {{> user}}
    {{/names}}
    
    user.mustache:
    <strong>{{name}}</strong>
    ```
    
    When using partials in this way, the `user.mustache` partial is loaded
    and compiled once for each iteration, even though the content is static.
    
    Compiling a template is computationally expensive, especially for large
    and complex partials.
    
    This change caches a template object keyed by the partial string, after
    indentation is applied. Using the same template object each time the
    partial is used means that compilation only has to happen once.
    
    For simple partials (such as the example from the manual, shown above)
    there's a ~16x speed up. The gain does not increase much as the list
    length grows.
    
    For complex partials the speed up can be better than ~50, getting better
    with longer lists.
Commits on Apr 20, 2015
  1. Benchmark for performance of partial rendering

    Dominic Baggott and Mike Patrick authored
    When mustache encounters `{{> partial_name}}` it loads the
    `partial_name` partial and renders it using the current context.
    This is a fairly expensive code path because it involves loading the
    partial template file, compiling the template, and rendering it.
    
    In order to make improvements to the performance of this we want to have
    a benchmark to assess code changes against.
Commits on Mar 6, 2015
  1. @locks

    Merge pull request #204 from agrimm/fix_warnings

    locks authored
    Fix warnings
  2. @agrimm

    Fix warnings

    agrimm authored
Commits on Feb 24, 2015
  1. @locks

    Merge pull request #203 from hugopeixoto/documentation-clarify-escape…

    locks authored
    …-prevention-tags
    
    Reword description of {{{name}}} and {{&name}}
Commits on Feb 23, 2015
  1. @locks

    Tweak README

    locks authored
  2. @locks

    Merge pull request #197 from KillaPL/master

    locks authored
    Add more profiles and benchmarks
  3. @locks

    Version bump - v1.0.1

    locks authored
  4. @locks

    Updates HISTORY.MD

    locks authored
  5. @KillaPL
  6. @hugopeixoto

    Reword description of {{{name}}} and {{&name}}

    hugopeixoto authored
    Removes reference to the word "unescaping", as it
    might lead people to believe it actually undoes
    html escaping.
    
    Fixes #157
  7. @locks

    Merge pull request #202 from hugopeixoto/bugfix-array-of-array-iteration

    locks authored
    Fix array of array iteration
  8. @hugopeixoto

    Fix array of array iteration

    hugopeixoto authored
    When resolving references to self (either with {{.}} or {{#.}})
    Mustache::Generator was generating code that called #to_s on
    the current context object, instead of actually returning it.
    
    This caused iteration on self to break, as it was converted
    to a string, breaking Array detection.
  9. @locks

    Merge pull request #200 from hugopeixoto/bugfix-failed-partial-lookup

    locks authored
    Update specs and fix failed partial lookup test
  10. @hugopeixoto

    Update specs and fix failed partial lookup test

    hugopeixoto authored
    Whenever a partial was not found, Mustache threw an exception.
    According to spec, it should just return an empty string.
    
    I've placed the exception raising under the same setting flag
    for missing context objects, Mustache#raise_on_context_miss.
Commits on Feb 21, 2015
  1. @locks

    Merge pull request #199 from hugopeixoto/bugfix-isolate-test-changes

    locks authored
    Fixes test idempotency
  2. @hugopeixoto

    Fixes test idempotency

    hugopeixoto authored
  3. @locks

    Merge pull request #198 from hugopeixoto/bugfix-enable-spec-tests

    locks authored
    Enable spec tests again
  4. @hugopeixoto

    Enable spec tests again

    hugopeixoto authored
    Spec tests were not being run, as the test method names
    did not match minitest pattern "test_*".
Commits on Feb 19, 2015
  1. @KillaPL

    add one more benchmark

    KillaPL authored
  2. @KillaPL

    cleanup

    KillaPL authored
  3. @KillaPL

    comment out object allocations

    KillaPL authored
  4. @KillaPL
  5. @locks

    Merge pull request #192 from KillaPL/master

    locks authored
    cache Mustache::Context#mustache_in_stack
  6. @KillaPL

    add benchmarks

    KillaPL authored
  7. @locks
  8. @locks

    Code formatting

    locks authored
    Trying out all new lines
  9. @locks

    whitespace

    locks authored
  10. @locks

    Fixes #194

    locks authored
Commits on Feb 18, 2015
  1. @KillaPL
Commits on Feb 12, 2015
  1. @locks

    Removes superfluous argument

    locks authored
  2. @locks
Something went wrong with that request. Please try again.