Skip to content
Commits on Feb 5, 2016
  1. @homu

    Auto merge of #219 - MarkusHarmsen:master, r=locks

    homu committed
    Prepend 'Mustache::' to Parser call to prevent namespace failures
    
    We had an error, where a wrong namespace has been used and therefore the Parser could not been instantiated. This commit fixed our problem.
  2. @MarkusHarmsen
Commits on Jan 8, 2016
  1. @homu

    Auto merge of #217 - neilpa:cli-misses, r=locks

    homu committed
    CLI option to raise exception on context misses
  2. @neilpa
Commits on Dec 4, 2015
  1. @locks

    Merge pull request #215 from ReadmeCritic/master

    locks committed
    Update README URLs based on HTTP redirects
Commits on Dec 3, 2015
  1. @ReadmeCritic
Commits on Nov 19, 2015
  1. @locks

    Merge pull request #214 from lwoggardner/deepmiss

    locks committed
    Raise on deep context miss
  2. @lwoggardner

    Raise on deep context miss

    lwoggardner committed
Commits on Nov 11, 2015
  1. @locks

    Merge pull request #211 from mustache/code-style

    locks committed
    Code style
  2. @locks

    Merge pull request #212 from willglynn/symbol_equality

    locks committed
    Favor Symbol == <arbitrary type> over vice-versa
  3. @willglynn
Commits on Oct 17, 2015
  1. @locks

    Removes unused private keyword

    locks committed
    I probably thought that private would make self.recursor private, but
    guess what.
  2. @locks

    Replaces "if !" with "unless"

    locks committed
  3. @locks

    Removes unnecessary !!

    locks committed
Commits on Jun 24, 2015
  1. @locks

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

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

    Version bump - v1.0.2

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

    Merge pull request #205 from evilstreak/master

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

    Cache template objects for partials

    evilstreak committed
    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 committed
    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 committed
    Fix warnings
  2. @agrimm

    Fix warnings

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

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

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

    Tweak README

    locks committed
  2. @locks

    Merge pull request #197 from KillaPL/master

    locks committed
    Add more profiles and benchmarks
  3. @locks

    Version bump - v1.0.1

    locks committed
  4. @locks

    Updates HISTORY.MD

    locks committed
  5. @KillaPL

    include ruby-prof conditionally

    KillaPL committed
  6. @hugopeixoto

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

    hugopeixoto committed
    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 committed
    Fix array of array iteration
  8. @hugopeixoto

    Fix array of array iteration

    hugopeixoto committed
    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 committed
    Update specs and fix failed partial lookup test
  10. @hugopeixoto

    Update specs and fix failed partial lookup test

    hugopeixoto committed
    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 committed
    Fixes test idempotency
  2. @hugopeixoto

    Fixes test idempotency

    hugopeixoto committed
  3. @locks

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

    locks committed
    Enable spec tests again
Something went wrong with that request. Please try again.