make templates fail loudly in dev

1
TEMPLATE_STRING_IF_INVALID = 'XXXXXXXXXXXXXXXXXXX'

More like this

  1. Variable._resolve_lookup monkeypatch by showell 3 years, 6 months ago
  2. Silently-failing include tag by brutasse 2 years, 11 months ago
  3. Mod to allow simple_tag to access context by leaf 4 years, 7 months ago
  4. Showell markup--DRY up your templates by showell 3 years, 5 months ago
  5. Make runfcgi fail when database connection is open before fork by mpasternacki 2 years, 2 months ago

Comments

Romain Hardouin (on May 13, 2009):

Don't forget that you can insert '%s' as a placeholder for the template variable name. It's usefull to pinpoint bugs. For instance :

TEMPLATE_STRING_IF_INVALID = '{{ %s }}'

#

showell (on May 14, 2009):

Thanks for the tip! I was not aware of that.

#

(Forgotten your password?)