Changes between Initial Version and Version 2 of Ticket #31128


Ignore:
Timestamp:
Dec 31, 2019, 10:38:06 AM (5 years ago)
Author:
P-Seebauer
Comment:

Oh sorry I had a typo in the examples, is fixed there now (no star before the argument)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31128

    • Property Cc Alexander Allakhverdiyev added
    • Property Component UncategorizedTemplate system
    • Property Has patch set
    • Property Owner changed from nobody to P-Seebauer
    • Property Triage Stage UnreviewedAccepted
    • Property Status newassigned
    • Property Summary Bug in simple and inclusion tag parsing.Custom template tags raise TemplateSyntaxError when keyword-only arguments with defaults are provided.
    • Property Type UncategorizedBug
  • Ticket #31128 – Description

    initial v2  
    33{{{
    44@register.simple_tag
    5 def hello(*, *greeting='hello'):
     5def hello(*, greeting='hello'):
    66    return f'{greeting} world'
    77}}}
     
    1919#tag
    2020@register.simple_tag
    21 def hi(*, *greeting):
     21def hi(*, greeting):
    2222    return f'{greeting} world'
    2323}}}
Back to Top