On 7/28/06, Bill de hÓra <[EMAIL PROTECTED]> wrote:
> Scope it per template:
>
> {% extends "base_generic.html" %}
> {% escape %}
>
> This lets people who want auto-escaping, have it, without typing in
> "|escape" everywhere or screwing things up site wide with globals.

Yeah. AFAIK that's pretty much how Malcolm's patch handles it (with an
'autoescape' tag to turn it on)

> Alternative, do it in the view code:

Eh. Not crazy about that; escaping belongs in the template layer, and
having it able to be set from anywhere else gets us into nastiness as
people try to figure out, in the template, whether the view turned
escaping on or not.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
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