On Jul 28, 2006, at 9:21 PM, Adrian Holovaty wrote:

>
> On 7/27/06, Simon Willison <[EMAIL PROTECTED]> wrote:
>> Here's an idea I don't think anyone has brought up yet: what if
>> escaping was on by default for templates ending in .html and off by
>> default for templates ending in .txt?
>
> I'm not keen on coupling the template filename to the template
> contents. Altering behavior based on the name of a template seems a
> bit too magical.

Would it be better to couple it with the mimetype? A text/plain should
by default not be excaped.

My $ 0.02

Roland
>
> Adrian



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to