1. Not sure how this is different than the original, `replacer` is only ever called on a substring of the template. 2. maybe...