I'm working on a CMS that will need to dynamically announce the events
necessary to fulfill each request and assemble the necessary views on the
fly.
The flow will be
1. Analyze URL to determine which pieces of content need to be assembled for
the given request (pre-process plug-in)
a. Look up which Mach-II events will handle retrieving those pieces of
content
b. Determine which views need to be called for the events
2. Announce the events
3. Render the views
I know I can use announceEvent() within my plug-in to dynamically queue the
events, but what's the best way to dynamically render the views? Should
each view be set up as a separate event handler to be queued (via
announceEvent()) at the end of the chain? If so, would this cause an
inadvisable performance hit? Other suggestions?
Thanks!
Zack Pitts