﻿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
11910	More flexible urlize template filter (passing a function that will execute for each url)	Stefan_Petrea	nobody	"Hi,

I'd like to have more control over how the links are generated through the urlize built-in filter.
To be more specific , I'd like to be able to pass a lambda or a subroutine(sorry I don't know how you call it in Python)
so that it will be called for each link it detects on that particular text and let me modify it how I want.
Of course, I cannot do that from the template Language , so what I propose is
a urlize Factory that will let the user build his own customized urlize filter.

new_filter = build_urlize_filter(do_when_url_encountered)
and pass to do_when_url_encountered the url each time one is encountered so that
the user can write his own code on what he thinks is right to be done here
(My particular needs would be to get the text from the last '/' to the end of the link and use that as the text
for the link)

Best regards,
Stefan"		closed	Template system	1.1		wontfix	template customize		Unreviewed	0	0	0	0	0	0
