flatiron / plates

Light-weight, logic-less, DSL-free, templates for all javascript environments!
MIT License
831 stars 69 forks source link

Adds understanding of nesting, removing some bloat #43

Closed nhunzaker closed 12 years ago

nhunzaker commented 12 years ago

Alright,

My apologies. The master branch wasn't inline with the original plates distro. This is twice I've done this, so I'll express more caution in the future.

@pksankura The benchmarks fluctuate, naturally, so tracking a definitive improvement in performance is difficult, but on average they appear to be slightly better (about 2k-4k ops/sec).

mustache x 167,477 ops/sec ±0.90% (81 runs sampled)
plates x 155,563 ops/sec ±0.96% (81 runs sampled)
mustache iterations x 30,855 ops/sec ±0.90% (85 runs sampled)
plates iterations x 55,583 ops/sec ±1.00%