by _xgw · 8y ago · 0 comments
For example:
> 'string'.split('').reverse().join('')
becomes
> 'string'.split``.reverse().join``
The function invoked does NOT simply receive the evaluated string, it gets the template and can decide what to do with it, or not, including how to encode/“escape” insertion values or other such issues.