﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35668	Expand format_html_join() to allow keyword formatting	Adam Johnson	Mohamed Nabil Rady	"[https://docs.djangoproject.com/en/stable/ref/utils/#django.utils.html.format_html_join `format_html_join()`] currently allows formatting positional arguments only. It would be nice if it expanded support to allow keyword arguments, like the underlying `format_html()` does. Keyword arguments would come from an iterable of mappings (dicts and dict-like objects). This would allow less repetition when a value is used multiple times in the template string, like:

{{{
from django.utils.html import format_html_join

html = format_html_join(
    ""\n"",
    '<li data-id=""{id}"">{title} ({id})</li>',
    [
        {""id"": book.id, ""title"": book.title}
        for book in books
    ]
)
}}}

and even:

{{{
from django.utils.html import format_html_join

html = format_html_join(
    ""\n"",
    '<li data-id=""{id}"">{title} ({id})</li>',
    Book.objects.values(""id"", ""title"")
)
}}}"	New feature	closed	Utilities	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
