Re: Passing variables to template filters

2011-02-04 Thread Andres Lucena
On Fri, Feb 4, 2011 at 11:07 AM, Tom Evans wrote: > On Fri, Feb 4, 2011 at 9:53 AM, Andres Lucena wrote: >> Hi, >> >> In my base.html I'm trying to do this: >> >>        {% block title %}{{title|default:"{{SITE_NAME}}"}}{% >> endblock %} >> >> But I'm getting this: >> >> TemplateSyntaxError at /

Re: Passing variables to template filters

2011-02-04 Thread Tom Evans
On Fri, Feb 4, 2011 at 9:53 AM, Andres Lucena wrote: > Hi, > > In my base.html I'm trying to do this: > >        {% block title %}{{title|default:"{{SITE_NAME}}"}}{% > endblock %} > > But I'm getting this: > > TemplateSyntaxError at / > default requires 1 arguments, 0 provided > > So, SITE_NAME is

Passing variables to template filters

2011-02-04 Thread Andres Lucena
Hi, In my base.html I'm trying to do this: {% block title %}{{title|default:"{{SITE_NAME}}"}}{% endblock %} But I'm getting this: TemplateSyntaxError at / default requires 1 arguments, 0 provided So, SITE_NAME is not passed to the filter. As a workaround I did this: {% block