{{{ #!html
ambien canada ambien overnight low cost car insurance new york car insurance health weight loss diet healthy weight loss paxil dosage paxil lawsuit buy adipex cheap buy cheapest adipex personal loan after bankruptcy low rate personal loan didrex cod shipping delivery didrex saturday generic zoloft buy zoloft online picture of lorazepam drug ativan picture generic lorazepam information apo lorazepam dosage information lexapro tablet generic lexapro medication soma sd soma tablet otc prilosec prilosec vs pharmacy prilosec purchase xenical diet pill buy cheap xenical personal loan after bankruptcy low rate personal loan xanax pill yellow xanax bar viagra prescription viagra sale propecia that is generic cheap propecia online buy prozac online prozac prescription order alprazolam online alprazolam buy carisoprodol online order carisoprodol free shipping buy valium online order valium online soma cube cheap soma 350mg nexium vs prilosec astrazeneca nexium cialis information order levitra online discount levitra texas health insurance california health insurance order zyban online how does zyban work buy diazepam online rectal diazepam buy low cost carisoprodol information on carisoprodol sale ic clonazepam info clonazepam visa buy viagra online buy viagra online levitra free sample free levitra on line phentermine on line phentermine adipex ionamin purchase viagra online free viagra generic bontril discount bontril diet pill buy viagra online buy viagra online buy phentermine buy phentermine low cost car insurance new york car insurance tamiflu cheap tamiflu by roche prozac and child prozac depression uk unsecured personal loan personal debt consolidation loan zoloft medicine pfizer zoloft health insurance lead short term health insurance ic carisoprodol carisoprodol lowest price ambien drug buy zolpidem online order alprazolam online buy alprazolam online weight loss program easy weight loss buy xenical online xenical canada celexa anxiety heidi celexa medication phentermine prescription phentermine online pharmacy cheapest car insurance online auto insurance quote rolex watch for sale diamond bezels for rolex watch generic lexapro medication order lexapro online purchase meridia 10 info on meridia iud buy alprazolam online alprazolam discount didrex overnight cheapest didrex information online discount pharmacy canada online pharmacy buy valium online order valium online order lorazepam online anxiety lorazepam tablet buy phendimatrazine phendimetrazine buy florida in phendimetrazine buy xanax valium xanax cod prilosec omeprazole buy prilosec online order adipex online adipex weight loss bontril pdm 35mg cheapest bontril purchase xanax cheap buy xanax valium adipex discount adipex lowest price ambien buying online ambien pill used rolex watch online buy rolex daytona propecia result cheap propecia fast weight loss diet weight loss patch ambien online pharmacy ambien generic online buy klonopin online order clonazepam online student health insurance texas health insurance cialis soft tab cialis vs viagra buy viagra online buy viagra online best online pharmacy online pharmacy medicine order valium online cheap valium 5mg buy viagra online buy viagra buy viagra online buy viagra clonazepam 0.5mg tablet anxiety clonazepam re vs xanax cialis for woman cialis on line diazepam medication generic diazepam paxil lawsuit information on the drug paxil h5n1 tamiflu buy tamiflu without prescription buy phentermine online buy phentermine online discontinuing celexa purchase celexa discount pharmacy swiss replica rolex watch rolex watch prices cheap viagra uk female viagra zyban medication order zyban online soma carisoprodol purchase soma cheap order diazepam online valium diazepam web.com phendimetrazine tartrate order phendimetrazine online buy phentermine online buy phentermine buy xanax valium purchase xanax cheap xenical meridia lowest price meridia canadian pharmacy online best online pharmacy
}}} = Wiki Macros = 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. Another kind of macros are WikiProcessors. They typically deal with alternate markup formats and representation of larger blocks of information (like source code highlighting). == Using Macros == Macro calls are enclosed in two ''square brackets''. Like python functions, macros can also have arguments, a comma separated list within parentheses. === Examples === {{{ [[Timestamp]] }}} Display: [[Timestamp]] {{{ [[HelloWorld(Testing)]] }}} Display: [[HelloWorld(Testing)]] == Available Macros == ''Note that the following list will only contain the macro documentation if you've not enabled `-OO` optimizations, or not set the `PythonOptimize` option for [wiki:TracModPython mod_python].'' [[MacroList]] == Macros from around the world == The [http://projects.edgewall.com/trac/ Trac Project] has a section dedicated to user-contributed macros, [http://projects.edgewall.com/trac/wiki/MacroBazaar MacroBazaar]. If you're looking for new macros, or have written new ones to share with the world, don't hesitate adding it to the [http://projects.edgewall.com/trac/wiki/MacroBazaar MacroBazaar] wiki page. ---- == Developing Custom Macros == 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 ''entry point'' function. Trac will display the returned data inserted into the HTML where the macro was called. It's easiest to learn from an example: {{{ #!python # MyMacro.py -- The world's simplest macro def execute(hdf, args, env): return "Hello World called with args: %s" % args }}} You can also use the environment (`env`) object, for example to access configuration data and the database, for example: {{{ #!python def execute(hdf, txt, env): return env.get_config('trac', 'repository_dir') }}} Note that since version 0.9, wiki macros can also be written as TracPlugins. This gives them some capabilities than “classic” macros do not have, such as directly access the HTTP request. For more information about developing macros, see the [http://projects.edgewall.com/trac/wiki/TracDev development resources] on the main project site. ---- See also: WikiProcessors, WikiFormatting, TracGuide