On Thu, Nov 28, 2013 at 10:55 PM, Ned Batchelder <ned@nedbatchelder.com> wrote:
On 11/28/13 11:57 AM, anatoly techtonik wrote:
http://docs.python.org/2/library/string.html#template-strings
## Original Idea
stdlib lacks the most popular basic variable extension syntax "{{ variable }}" that can be found in Django [1], Jinja2 [2] and other templating engines [3].
Anatoly, you've been participating here long enough to know that an important question to answer is: why does the stdlib need this functionality? As you point out here, it is already available from popular third-party packages. Why not just let them provide the functionality, and leave it at that?
stdlib doesn't need the functionality provided by current string,Template, and if stdlib comes with batteries included, it is better to ship Alkaline than NiCd. Support for {{ }} syntax and attribute lookup is a way to provide something simple from the start, that can be later enhanced by using dependencies, but without rewriting everything to a new syntax. -- anatoly t.