Changes between Version 10 and Version 11 of WikiMacros


Ignore:
Timestamp:
Jan 29, 2015, 11:50:39 AM (9 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiMacros

    v10 v11  
    7777For more information about developing macros, see the [trac:TracDev development resources] on the main project site.
    7878
    79 
    80 Here are 2 simple examples showing how to create a Macro with Trac 0.11.
    81 
    82 Also, have a look at [trac:source:tags/trac-0.11/sample-plugins/Timestamp.py Timestamp.py] for an example that shows the difference between old style and new style macros and at the [trac:source:tags/trac-0.11/wiki-macros/README macros/README] which provides a little more insight about the transition.
     79Here are 2 simple examples showing how to create a Macro. Also, have a look at [trac:source:tags/trac-1.0.2/sample-plugins/Timestamp.py Timestamp.py] for an example that shows the difference between old style and new style macros and at the [trac:source:tags/trac-0.11/wiki-macros/README macros/README] which provides a little more insight about the transition.
    8380
    8481=== Macro without arguments ===
     
    10299    def expand_macro(self, formatter, name, text):
    103100        t = datetime.now(utc)
    104         return tag.b(format_datetime(t, '%c'))
     101        return tag.strong(format_datetime(t, '%c'))
    105102}}}
    106103