flatiron / plates

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

Mapping to array with different values ex map.class('name').use('fullname') #108

Open davidamitchell opened 11 years ago

davidamitchell commented 11 years ago

Added tests (42,43) for mapping objects/arrays when using different values in the map for the data keys and the attribute values. ex map.class('name').use('fullname')

Additional the proposed solution for the problem.

Also removed a passing of a key to the iterate method when the data is of type object as it is not used.