I am interested in writing a plugin for webmacro (a templating engine like velocity). I have looked briefly at the documentation but would just like a point in the right direction.
In its simplest form I want to add navigation on webmacro's "macro" functionality. In webmacro you can create a kind of function called a macro that would for example display a common table header. We have libraries of these things.
From a template you would just write #commonTableHeader() and it will spit out the contents of the macro when it is parsed. What I need to do is parse the collection of macro files (all ending in .wmm) and locate each macro. Then when a user holds down "ctrl" and clicks on the macro in any given template it takes you to the code for that macro.
My question is this, what classes should I be looking at to get this type of functionality? Is there any other plugins that have similar behaviour to what I require? I have looked through each plugins description but not really found one that does anything similar, but I may have missed something.
Any help would be much appreciated.
Thanks in advance, Laurence