@googlegroups.com] Im
Auftrag von Peter Suter
Gesendet: Dienstag, 8. August 2017 20:14
An: trac-users@googlegroups.com
Betreff: Re: [Trac] Help in development of trac macro building links
Hi,
On 08.08.2017 14:19, Riedel, Torge wrote:
Hi,
I’m developing a trac macro to make it easier for wiki editors
On 09.08.2017 00:25, RjOllos wrote:
On Tuesday, August 8, 2017 at 11:14:25 AM UTC-7, Peter Suter wrote:
A slightly simpler version:
return format_to_html(self.env, formatter.context, the_link)
Seems like it would be a good idea to change the example code to use
format_to_html, as
On Tuesday, August 8, 2017 at 11:14:25 AM UTC-7, Peter Suter wrote:
>
> A slightly simpler version:
>
> from trac.wiki.macros import WikiMacroBase
> from trac.wiki.formatter import format_to_html
>
>
> class MyLinkMacro(WikiMacroBase):
> def expand_macro(self, formatter, name, text,
Hi,
On 08.08.2017 14:19, Riedel, Torge wrote:
Hi,
I’m developing a trac macro to make it easier for wiki editors to add
links to an external tool.
In Wiki-Markup they can then use a macro:
[[MyLink(my_value)]]
to have a link in trac style on their wiki page to the external tool.
The