mozilla/nunjucks — pull request #321 by dhendo (2014-11-14 15:15:44+00:00)
Title: Replace replace

Re-written to behave more like the Jinja2 implementation - it calls directly into python's replace().
- Now does not result in an infinite loop if no maxCount is used and the old string is a substring of replacement. fixes mozilla/nunjucks#201
- Handle numbers a bit better
- Improved tests
- Replacing an empty string will interleave the replacement