On 28 Jul 2006, at 13:06, Todd O'Bryan wrote:

> What if we deprecated {{ }} and replaced it with an escape tag and a
> raw tag? It would keep backward compatibility, but would encourage
> people to use escaped strings unless they have a reason to use raw
> ones. I suppose we don't really have to deprecate it, but just
> discourage its use.
>
> {! !} seems perfect for raw, because the exclamation points emphasize
> that something bad could happen.
>
> {$ $} could be used for escaping, with the $'s designed to remind
> people of environment variables. This would be tag people are
> encouraged to use unless they need raw HTML text.

The above is nice and simple, but it only solves a subset of the  
problem that auto_escaping is designed to solve. The missing  
component is filters: for filters to be truly chainable, they need an  
awareness of if their input is escaped or not. The 'unorderedlist' vs  
'escaped_unorderedlist' discussion from a while back is a good  
example of that. This is covered in more detail in the proposal on  
the wiki.

Cheers,

Simon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
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