Changes between Version 2 and Version 3 of WikiMacros
- Timestamp:
- Jun 8, 2011, 7:42:05 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiMacros
v2 v3 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