Opened 3 weeks ago

Closed 3 weeks ago

Last modified 3 weeks ago

#37228 closed New feature (duplicate)

Make multiline tags possible

Reported by: Jonathan Sundqvist Owned by:
Component: Template system Version: 6.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The ticket #8652 closed this as won't fix. This was 18 years ago, and I think it's worthwhile to re-visit this issue.

This is an example of a line that is starting to become unwieldy.

{% include "stories/partials/story_detail.html#detail" with variant="detail" var="a" var_2="b" var_3="c" %}

It would be much better if you could break this up into the following.

{% include "stories/partials/story_detail.html#detail" 
     with variant="detail" var="a" var_2="b" var_3="c" %}

or

{% include "stories/partials/story_detail.html#detail" 
    with variant="detail" 
    var="a" 
    var_2="b" 
    var_3="c" 
%}

That would make these kind of long tags much easier to read.

Change History (2)

comment:1 by blighj, 3 weeks ago

Component: UncategorizedTemplate system
Resolution: duplicate
Status: newclosed

I have good news, 16 years later there was a ticket for this accepted and is being worked on. If you wanted to help out it's at #35899

comment:2 by Jonathan Sundqvist, 3 weeks ago

blighj, Thank you for letting me know that there is already a patch underway! I'll check it out and see if there is anything I can add.

Note: See TracTickets for help on using tickets.
Back to Top