Opened 7 years ago

Closed 7 years ago

#15142 closed enhancement (patchwelcome)

Missing tags in DTL. Compared to Django 1.4.

Reported by: Michael Wu Owned by: Michael Wu
Priority: undecided Milestone: tbd
Component: DojoX DTL Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

The "if" tag in DLT seems to be missing the "elif", "Filters", and "Complex expressions" function. "elif" is newly added to Django in version 1.4.

I think having "elif" is very handy, I would appreciate it if someone knowledgeable can help to add this function.

Thanks, Michael

Django reference: https://docs.djangoproject.com/en/dev/ref/templates/builtins/#if

Some other tags also are missing, I have helped to summarized the missing ones in the table below:

| Implemented |     Tag     | Text Unit Test | HTML Unit Test |
|     N/A     | autoescape  |                |                |
|      X      | block       |       X        |                |
|      X      | comment     |       X        |                |
|     N/A     | csrf_token  |                |                |
|      X      | cycle       |       X        |                |
|      X      | debug       |       X        |                |
|      X      | extends     |       X        |                |
|      X      | filter      |       X        |                |
|      X      | firstof     |       X        |                |
|      X      | for         |       X        |                |
|     N/A     | for...empty |                |                |
|      X*     | if          |       X        |                |
|      X      | ifchanged   |       X        |       X        |
|      X      | ifequal     |       X        |                |
|      X      | ifnotequal  |       X        |                |
|      X      | include     |       X        |       X        |
|      X      | load        |       X        |                |
|      X      | now         |       X        |                |
|      X      | regroup     |       X        |                |
|      X      | spaceless   |       X        |       X        |
|      X      | ssi         |       X        |       X        |
|      X      | templatetag |       X        |                |
|     N/A     | url         |                |                |
|      X      | widthratio  |       X        |                |
|      X      | with        |       X        |                |
  • missing functions

Change History (3)

comment:1 Changed 7 years ago by ben hockey

Owner: changed from Neil Roberts to Michael Wu
Status: newpending

fyi - dtl is all but abandoned. if you have a patch, it might be considered if you can convince someone to take a look at it.

do you have a patch for this? without a patch this ticket will be closed.

comment:2 Changed 7 years ago by Michael Wu

Status: pendingnew

Thanks for the information. No, T don't have a patch for this.

Please close this ticket and I will come back if i do come up with a patch.

Thanks.

comment:3 Changed 7 years ago by ben hockey

Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.