Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of WikiMacros


Ignore:
Timestamp:
10/27/05 20:08:15 (9 years ago)
Author:
anonymous
Comment:

tagged macros with python processor

Legend:

Unmodified
Added
Removed
Modified
  • WikiMacros

    v1 v2  
    4747It's easiest to learn from an example: 
    4848{{{ 
     49#!python 
    4950# MyMacro.py -- The world's simplest macro 
    5051 
     
    6061Example: 
    6162{{{ 
     63#!python 
    6264def execute(hdf, args, env): 
    6365    # Currently hdf is set only when the macro is called 
     
    7577Example. 
    7678{{{ 
     79#!python 
    7780def execute(hdf, txt, env): 
    7881    return env.get_config('trac', 'repository_dir')