trac.wiki.macros
– The standard set of Wiki macros¶
The standard set of components corresponding to Wiki macros are not
meant to be used directly from the API. You may study their
implementation though, for getting inspiration. In particular, you’ll
see they all subclass the WikiMacroBase
class, which provides a
convenient way to implement a new IWikiMacroProvider
interface.
-
class
trac.wiki.macros.
WikiMacroBase
¶ Bases:
trac.core.Component
Abstract base class for wiki macros.
-
get_macro_description
(name)¶ Return the subclass’s gettext domain and macro description
-
get_macros
()¶ Yield the name of the macro based on the class name.
-
See also wiki/WikiMacros#DevelopingCustomMacros.