Opened 16 years ago
Closed 16 years ago
#11708 closed (duplicate)
django.contrib.markup: pass docutils Writer as argument to restructuredtext template filter
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Contrib apps | Version: | dev | 
| Severity: | Keywords: | rst markup Writer template filter | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
Adds optional passing of a custom writer_name to restructuredtext template filter. Defaults to the standard html4css1 Writer from docutils.writers.
So 
{{ value|restructuredtext }}
will give you standard html output and
{{ value|restructuredtext:"custom" }}
will user the Writer class from the custom module.
See the docutils documentation for more info.
Attachments (1)
Change History (2)
by , 16 years ago
comment:1 by , 16 years ago
| Resolution: | → duplicate | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
Duplicate of #11342