close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
- Timestamp:
-
Mar 15, 2010, 9:46:23 AM (16 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
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 name |
| 48 | 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 name |
| 71 | 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 |