make templates fail loudly in dev

1
TEMPLATE_STRING_IF_INVALID = 'XXXXXXXXXXXXXXXXXXX'

More like this

  1. Template filter to turn Twitter names into links by mrben_ 1 year, 7 months ago
  2. Template range filter by zalun 2 years, 11 months ago
  3. Load a local settings file for dev/test environments by menendez 3 years, 6 months ago
  4. Severity codes in user messages by cconnell 3 years ago
  5. "Partial Templates" - an alternative to "include" by vigrid 3 years 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?)