<p dir="ltr"><br>
On Aug 24, 2015 1:21 PM, "Mike Miller" <<a href="mailto:python-ideas@mgmiller.net">python-ideas@mgmiller.net</a>> wrote:<br>
><br>
> 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</p>
<p dir="ltr">Printf/str.format/str.__mod__/string concatenation are often<br>
*dangerou;\n\s** in context to shell scripts (unless you're building a "para"+"meter" that will itself be quoted/escaped; or passing tuple cmds to eg subprocess.Popen);<br>
which is why I would use pypi:sarge for Python 2.x+,3.x+ here.</p>
<p dir="ltr">Or yield a sequence of typed strings which can be contextually ANDed.</p>
<p dir="ltr">> and "whipping up a quick string", which I'd argue are more important.<br>
><br>
> Cheers,<br>
> -Mike<br>
><br>
><br>
><br>
> On 08/24/2015 02:48 AM, Nick Coghlan wrote:<br>
>><br>
>> On 24 August 2015 at 18:51, Mike Miller <<a href="mailto:python-ideas@mgmiller.net">python-ideas@mgmiller.net</a>> wrote<br>
>>><br>
>>> Hi, this part I don't get, maybe because it's so late here. Why create<br>
>>><br>
>>> Django/Jinja2/i20n templates inside Python code using another templating<br>
>>> language (whether Template or .format)?<br>
>>><br>
>>> Those kind of templates should be in dedicated text files, no?<br>
>><br>
>><br>
>> Think of meta-templating tools like cookie-cutter or DevAssistant (or<br>
>> the project wizards in an IDE) - for those kinds of tools, "source<br>
>> file formats" are actually output formats. Once you look at enough<br>
>> different parts of the software development pipeline you find that<br>
>> pretty much *every* input format is an output format for some other<br>
>> tool :)<br>
>><br>
>> Cheers,<br>
>> Nick.<br>
>><br>
> _______________________________________________<br>
> Python-ideas mailing list<br>
> <a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-ideas">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
> Code of Conduct: <a href="http://python.org/psf/codeofconduct/">http://python.org/psf/codeofconduct/</a><br>
</p>