Changes between Version 1 and Version 2 of TracDev/PluginDevelopment/ExtensionPoints/trac.wiki.api.IWikiMacroProvider
- Timestamp:
- Jan 22, 2012, 12:03:07 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PluginDevelopment/ExtensionPoints/trac.wiki.api.IWikiMacroProvider
v1 v2 18 18 Implementing the interface follows the standard guidelines found in [wiki:TracDev/ComponentArchitecture] and of course [wiki:TracDev/PluginDevelopment]. 19 19 20 A class implementing !IWikiMacroProvider directly can provide multiple macros by returning their names from `get_macros`. The `expand_macro` method is then called each time one of these macros is rendered.20 A class implementing IWikiMacroProvider directly can provide multiple macros by returning their names from `get_macros`. The `expand_macro` method is then called each time one of these macros is rendered. 21 21 22 22 That method should render the macro invocation, by returning the expanded HTML string. The name of the macro to be invoked in the `name` parameter.