Repository navigation
.template method will replace keys that do not exist with empty string - #117
Conversation
|
@jprichardson any thoughts ? |
|
Ya, I think this is good :) Sorry for the delayed response, I'll take care On Sun, Oct 12, 2014 at 7:50 AM, Azharul Islam notifications@github.com
Simple & Secure Bitcoin Wallet: https://www.coinbolt.com |
|
Actually, I'm not so sure about this one. What is the default behavior in lodash or underscore? I think that it should follow those libraries as much as possible as those will be the expected behavior. |
|
underscore/lodash interpolate have the same behaviour. They also have the capability of executing javascript and escaping HTML ( I can work on adding them here as well if thats in the vision.) |
|
OK, sounds good. Could you resubmit this PR with the new master? (I can't automerge) |
cbfa139 to
b179720
Compare
|
@jprichardson done |
.template method will replace keys that do not exist with empty string
If the key does not exist current template method keeps the {{ _ }} string as is. Replacing it with empty string seems to be helpful.