Changes between Version 4 and Version 5 of WikiMacros
- Timestamp:
- 2014-11-04T21:22:55Z (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiMacros
v4 v5 3 3 [[PageOutline]] 4 4 5 Trac macros are plugins to extend the Trac engine with custom 'functions' written in Python. A macro inserts dynamic HTML data in any context supporting WikiFormatting. 5 Trac macros are plugins to extend the Trac engine with custom 'functions' written in Python. A macro inserts dynamic HTML data in any context supporting WikiFormatting. Its syntax is `[[macro-name(optional-arguments)]]`. 6 6 7 Another kind of macros are WikiProcessors. They typically deal with alternate markup formats and representation of larger blocks of information (like source code highlighting).7 The WikiProcessors are another kind of macros. They typically deal with alternate markup formats and transformation of larger "blocks" of information (like source code highlighting). They are used for processing the multiline `{{{#!wiki-processor-name ... }}}` blocks. 8 8 9 9 == Using Macros == … … 102 102 def expand_macro(self, formatter, name, text): 103 103 t = datetime.now(utc) 104 return tag. b(format_datetime(t, '%c'))104 return tag.strong(format_datetime(t, '%c')) 105 105 }}} 106 106