[Python-ideas] Draft PEP on string interpolation

Mike Miller python-ideas at mgmiller.net
Mon Aug 24 20:21:14 CEST 2015


Ok thanks, I know someone out there is probably using templating to make 
templating templates.  But, we're getting out into the wilderness here.  The 
original use cases were shell scripts and "whipping up a quick string", which 
I'd argue are more important.

Cheers,
-Mike


On 08/24/2015 02:48 AM, Nick Coghlan wrote:
> On 24 August 2015 at 18:51, Mike Miller <python-ideas at mgmiller.net> wrote
>> Hi, this part I don't get, maybe because it's so late here.  Why create
>> Django/Jinja2/i20n templates inside Python code using another templating
>> language (whether Template or .format)?
>>
>> Those kind of templates should be in dedicated text files, no?
>
> Think of meta-templating tools like cookie-cutter or DevAssistant (or
> the project wizards in an IDE) - for those kinds of tools, "source
> file formats" are actually output formats. Once you look at enough
> different parts of the software development pipeline you find that
> pretty much *every* input format is an output format for some other
> tool :)
>
> Cheers,
> Nick.
>


More information about the Python-ideas mailing list