Andrea Giammarchi (2014-12-16T17:35:02.000Z)
d at domenic.me (2014-12-19T22:53:31.128Z)
once you pass an object, can you tell me why the suggested gist would not work? You don't want scope lookup in your strings because coming from elsewhere, and you want to pass an object. So what is exactly the issue with 'Hello ${first_name}'.template({first_name: "John"}) ? Is it because it's in the prototype? You are not going to for/in a string (I hope) anyway ... but if that's the issue you can always grab the code and make it a `template` function, right ? it's WTFPL code, go ahead! OT this back-tick thing will mess up quite a bit on markdown ... oh well ...