34 | | Macros, like Trac itself, are written in the [http://www.python.org/ Python programming language]. They are very simple modules, identified by the filename and should contain a single `execute()` function. Trac will display the returned data inserted into the HTML representation of the Wiki page where the macro is called. |
| 34 | Macros, like Trac itself, are written in the [http://www.python.org/ Python programming language]. |
| 35 | |
| 36 | Since version 0.9, wiki macros can also be written as TracPlugins. This gives them some capabilities that “classic” macros do not have, such as being able to directly access the HTTP request. |
| 37 | |
| 38 | For more information about developing macros, see the [http://projects.edgewall.com/trac/wiki/TracDev development resources] on the main project site. |
| 39 | |
| 40 | === Old Style Macros === |
| 41 | ''Note: this is still supported in [trac:milestone:0.10], but deprecated. |
| 42 | Support for old style macros has been removed in [trac:milestone:0.11].'' |
| 43 | |
| 44 | They are very simple modules, identified by the filename and should contain a single `execute()` function. Trac will display the returned data inserted into the HTML representation of the Wiki page where the macro is called. |