#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 11 years ago by
Milestone: | tbd → future |
---|
comment:2 Changed 9 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
comment:3 Changed 9 years ago by
Priority: | high → low |
---|
Note: See
TracTickets for help on using
tickets.
dtl is unsupported. any further patches are welcome.