Changes between Version 2 and Version 3 of WikiMacros
- Timestamp:
- 10/01/2009 04:59:23 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiMacros
v2 v3 36 36 Macros, like Trac itself, are written in the [http://python.org/ Python programming language]. 37 37 38 For more information about developing macros, see the [ wiki:TracDev development resources] on the main project site.38 For more information about developing macros, see the [trac:TracDev development resources] on the main project site. 39 39 40 40 41 41 == Implementation == 42 42 43 Here are 2 simple examples on how to create a Macro with [wiki:0.11 Trac 0.11] have a look at source:trunk/sample-plugins/Timestamp.py for an example that shows the difference between old style and new style macros and also source:trunk/wiki-macros/README which provides a little more insight about the transition. 43 Here are 2 simple examples showing how to create a Macro with Trac 0.11. 44 45 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. 44 46 45 47 === Macro without arguments === … … 55 57 from trac.wiki.macros import WikiMacroBase 56 58 57 class Time stampMacro(WikiMacroBase):59 class TimeStampMacro(WikiMacroBase): 58 60 """Inserts the current time (in seconds) into the wiki page.""" 59 61