defunkt/pystache — pull request #92 by lucasb-eyer (2012-02-29 10:14:37+00:00)
Title: Fix to issue #91: Changing delimiters should only affect the upcoming text.

I created a test case for the case from the bugreport and the fix passes it. It also passes all other tests.

How it works is essentially what I described in the issue:
1. After a match/replacement, only continue searching from the beginning of the replacement on.
2. Do the replacement on the exact match, not the first string part resembling the matched text.

The behaviour now is the same as the behaviour in http://mustache.github.com/#demo