#36306: Allow simple_tag to parse @/:/- attributes
-------------------------------------+-------------------------------------
     Reporter:  Giannis Terzopoulos  |                     Type:  New
                                     |  feature
       Status:  new                  |                Component:
                                     |  Uncategorized
      Version:                       |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 I'm following up on the forum discussion:
 https://forum.djangoproject.com/t/proposal-allow-simple-tag-to-parse-
 attributes/36769

 I think a sensible first step is trying an opt-in argument as Adam
 suggested, e.g., `allow_all_attrs=True` or perhaps
 `allow_all_html_attrs=True`.

 For implementation details, I propose:
 1. Whitelisting common punctuation characters (`@`, `:`, `-`) for
 attribute names
 2. Making these attributes accessible directly (only) from kwargs, such as
 `kwargs["@hello"]`
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36306>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701961554acb2-7380be6b-e107-4906-9c15-37436d32c05f-000000%40eu-central-1.amazonses.com.

Reply via email to