I added a test case for the issue #534 and rebase it.
escaped double quotes are now unescaped
Added a test case for templating with escaped double braces.
The added test looks reasonable to me. Do we need to also test edge cases (e.g., unclosed escaped double braces, or ones which cross line breaks? I don't know whether Jinja2 allows such cases.
Added edged test cases for templating with escpaed doubled braces.
@tseaver thank for your review. I added some edged test cases for the escaped braces pattern.
But I could not decide which is better that raise an exception when there are no balanced braces or just output braces with the escaped characters. I implemented the second one on the above commit because it is difficult to detect a balanced braces, I think.
Is it OK? If there is some problem, I will fix it.
I'm +1 on the merge (the added tests look fine to me), but am reluctant to do the merge myself, as I don't use Jinja2. Can somebody who does use it please review?
@wutali thank you for the patch. It looks fine, and doesn't appear to break anything.
Could I trouble you to add your name to CONTRIBUTORS.txt in the root of the Pyramid proejct before I merge this?
@mcdonc Sorry, I missed your message. I notice it now.
No problem about the listing of CONTRIBUTORS.
Thank you. I'm glad to be listed on it.
Great. Can you add a commit to your fork adding yourself to the file?
Added me to the CONTRIBUTERS.txt.
@mcdonc I updated the file. thx.
Permit escaping of double braces in scaffolds, see #862
Thank you, merged!