Opened 12 years ago

Closed 9 years ago

Last modified 9 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:


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

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

Change History (3)

comment:1 Changed 12 years ago by dante

Milestone: tbdfuture

comment:2 Changed 9 years ago by ben hockey

Resolution: patchwelcome
Status: newclosed

dtl is unsupported. any further patches are welcome.

comment:3 Changed 9 years ago by ben hockey

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