I think for this to work, we would have to allow data to be passed to
any Module\Response object via set() just like it is to View\Template
objects. This would allow plugins to access the data and pass it on.
From a user standpoint, a big issue I see with this approach is I
think it would actually wind up being less clear what is happening,
which is contrary to what Alloy tries to achieve by forcing
explicitness. They return a generic response and then a template gets
rendered somewhere outside the method (wrapped or replaced by a plugin
response). Other questions would arise as well - how do they change
the template file, path, etc?
I'm all for less code - one response may look cleaner than IF
statements of switches - but it has to be crystal clear what is going
on so it is easier to understand and modify. As long as we can
reasonably achieve that, I'm good with it.
--
Vance Lucas
http://www.vancelucas.com