One last addition...#562
Conversation
|
@braddunbar -- is this patch necessary? I thought |
|
No, escape does not handle this. It's handled in Backbone.Model#escape but +1 - I think it's reasonable to expect that null values are handled consistently in |
|
FYI, this was discussed in jashkenas/backbone#1227 and it was decided that |
|
For what it's worth this was also inconsistent in 1.3.1. |
|
FWIW -- it was purposeful. Only strings have a defined "escaped" value. Escaping other objects isn't supported. ... but we can do whatever here. |
This uses braddunbar's
__t=solution to have<%- foo %>work the same as<%= foo %>. Tests updated.