Changes between Version 3 and Version 4 of WikiMacros
- Timestamp:
- 13/04/2010 13:24:07 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiMacros
v3 v4 8 8 9 9 == Using Macros == 10 Macro calls are enclosed in two ''square brackets''. Like Python functions, macros can also have arguments, a comma separated list within parentheses. 10 Macro calls are enclosed in two ''square brackets''. Like Python functions, macros can also have arguments, a comma separated list within parentheses. 11 11 12 12 Trac macros can also be written as TracPlugins. This gives them some capabilities that macros do not have, such as being able to directly access the HTTP request. … … 46 46 47 47 === Macro without arguments === 48 It should be saved as `TimeStamp.py` as Trac will use the module name as the Macro name48 It should be saved as `TimeStamp.py` (in the TracEnvironment's `plugins/` directory) as Trac will use the module name as the Macro name. 49 49 {{{ 50 50 #!python … … 69 69 70 70 === Macro with arguments === 71 It should be saved as `HelloWorld.py` (in the plugins/ directory) as Trac will use the module name as the Macro name71 It should be saved as `HelloWorld.py` (in the TracEnvironment's `plugins/` directory) as Trac will use the module name as the Macro name. 72 72 {{{ 73 73 #!python