flatiron/plates — pull request #21 by realistschuckle (2012-01-14 17:01:27+00:00)
Title: Discriminate on tag attribute values when using differing where/is.

(perf-test seems unaffected by this change. plates either ties with mustache or, sometimes, beats mustache.)

This change allows programmers to write the following and have it work.

var map = Plates.Map();
map.where('name').is('method').use('method').as('value');
map.where('name').is('id').use('id').as('value');

Previously, given something like

var data = {
method: 'DELETE',
id: 7
};

var template = '';

then depending on the order of the ``map.where`` statements, you would get

or