Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#10258 closed defect (patchwelcome)

Variable evaluation inconsistencies with official DTL (if-tag)

Reported by: Mark Wubben Owned by: Neil Roberts
Priority: low Milestone: future
Component: DojoX DTL Version: 1.4.0b
Keywords: Cc: Neil Roberts
Blocked By: Blocking:

Description

According to the DTL description for the if tag, it should go into the "falses" branch if the variable is empty (say an empty list). However the JavaScript? is only checking for boolean values.

The {% if %} tag evaluates a variable, and if that variable is "true" (i.e. exists, is not empty, and is not a false boolean value) the contents of the block are output http://docs.djangoproject.com/en/dev/ref/templates/builtins/#ttag-if

I suspect there are several other inconsistencies of a similar kind.

Change History (3)

comment:1 Changed 10 years ago by dante

Milestone: tbdfuture

comment:2 Changed 7 years ago by ben hockey

Resolution: patchwelcome
Status: newclosed

dtl is unsupported. any further patches are welcome.

comment:3 Changed 7 years ago by ben hockey

Priority: highlow
Note: See TracTickets for help on using tickets.