running .91 due to upgrade soon.

On Jul 10, 11:27 am, Vincent Foley <[EMAIL PROTECTED]> wrote:
> It works fine with me:
>
> >>> from django.template import Template, Context
> >>> t = Template('''{% ifequal s "Some Thing" %}Equal{% else %}Not equal{% 
> >>> endifequal %}''')
> >>> t.render(Context({'s': 'foo'}))
>
> 'Not equal'
>
> >>> t.render(Context({'s': 'Some Thing'}))
>
> 'Equal'
>
> What version of Django are you using?
>
> Vincent
>
> On Jul 10, 6:58 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > I don't see why this {% ifequal theclass "Some Thing"  %} throws a
> > TemplateSyntaxError  "  'ifequal' takes two arguments " while this  {%
> > ifequal theclass "SomeThing"  %}  does not?
>
> > Any clarity would be welcomed.
>
> > Best


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to