Modify ↓
Opened 5 years ago
Closed 5 years ago
#13875 closed enhancement (fixed)
[PATCH] Support Jinja2 Templates
| Reported by: | anonymous | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | DynamicFieldsPlugin |
| Severity: | normal | Keywords: | patch |
| Cc: | Trac Release: | 1.4 |
Description
I was looking into what this plugin could offer, and decided to try updating the template used to Jinja2.
Attached is my attempt. I'm new to this plugin, so I may not have tested all cases.
The code change in web_ui.py is trivial:
if hasattr(Chrome, 'jenv'): template = 'prefs_panel_jinja.html' return template, data else: template = 'prefs_panel.html' return template, data
Attachments (1)
Change History (5)
Changed 5 years ago by
| Attachment: | prefs_panel_jinja.html added |
|---|
comment:1 Changed 5 years ago by
| Status: | new → accepted |
|---|
comment:2 Changed 5 years ago by
jinjachecker.py reveals a missing <html> tag, but otherwise looks good.
$ jinjachecker.py dynfields/templates/prefs_panel_jinja.html
comment:4 Changed 5 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Thanks, appreciate the good work!
Note: See
TracTickets for help on using
tickets.



Jinja2 version of preferences panel.