I was wondering whether there is a trick to (easily) incorporate some python code into a moinmoin page, perhaps by adding some action. The idea is that something like
<<<
for j in [1,3,5]:
print(i)
>>>
is displayed on the page as
1
3
5
Quick and dirty is ok, safety is not a concern, I would like to have this for a stand-alone, “desktop-mode” installation.
In your moinmoin instance go to
Make sure that there’s an __init__.py with at least the following content:
Then create your macro there:
Use this as a template:
In your wiki-pages you should now be able to call that macro with: