[Moin-devel] macro members/methods

Thomas Waldmann tw-public at gmx.de
Wed Oct 20 09:22:10 EDT 2004


> I'm trying to learn more about how macros work.  can someone point me
> in the right direction in perms of learning about macro methods and
> attributes?

Just look into MoinMoin/macro/*.py - the easiest to start with is BR.py 
(that is the code for [[BR]]). :)

Macros just get called by moin with some parameter string they have to 
parse on their own. Then they should call the formatter to generate HTML 
(or other output) and return the result at the end.





More information about the Moin-devel mailing list