Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Frankly i'm not either. I've been working on concepts for a Community site with many of the features of Everything, Slashcode, Forums, Blogs, and link databases all combined into one.
With perl it shouldn't be too hard to have each module have a standard init function that is called when its installed/loaded. That init function could then call a sub giving it the event to handle and a reference to the sub to call. I'd also think that instead of passing events arguments, either pass it a hashref with the arguments in it, or just have one common hash that is used to communicate between events, and the board/forum system. Some problems would be, how to handle multiple occurences of handlers...call them all? or let them overpower the original in some way? Maybe that could be one of the options for the function to set handlers. So some handlers are used in addition to the current one, and some replace the original. It would me anyone making modules needs to play nice, but thats true anyway. You could also run the modules in a Safe compartment to control what access they do have for some added security. I look forward to seeing what you do come up with! In reply to Re: Best way to 'add modules' to web app?
by Anonymous Monk
|
|