Edgewall Software

Changes between Version 1 and Version 2 of TracDev/PluginDevelopment/ExtensionPoints/trac.wiki.api.IWikiMacroProvider


Ignore:
Timestamp:
Jan 22, 2012, 12:03:07 PM (12 years ago)
Author:
Peter Suter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/PluginDevelopment/ExtensionPoints/trac.wiki.api.IWikiMacroProvider

    v1 v2  
    1818Implementing the interface follows the standard guidelines found in [wiki:TracDev/ComponentArchitecture] and of course [wiki:TracDev/PluginDevelopment].
    1919
    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.
     20A 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.
    2121
    2222That method should render the macro invocation, by returning the expanded HTML string. The name of the macro to be invoked in the `name` parameter.