Hi Mark, I'd like to discuss possibilities to make this more flexible. Right now it > considers every method in a delegate class to be a run mode. > > I would like a way to mark only some of the methods for use.
Hmm. My concept for the module was that a delegate is a class that only contains runmodes. So the way to mark methods as run-modes is to group them in a package and use that package as a delegate. Anything that is not a runmode must not be in that package. I would like to stick with this approach as it is very clear-cut and easy to understand. Introducing more complexity also increases the potential for usage errors that can lead to "unintentional runmodes". 1. Respect the " :Runmode " attribute on these run modes. > I'm not sure if that would work. If you want that, you can just declare :Runmode in the original CGI::App. If you want to re-use them in more then one application, you can declare them :Runmode in a shared package and export them (I think that would work, though I have not tried it). Thilo