e.sammer wrote:
> Just after the time of my email, I did manage to find someone in the 
> #perl channel on OPN that suggested (in short) just using TT's plugin 
> arch as you have. This person (who was extremely helpful) felt that the 
> concerns I had regarding the separation of display code vs. submit 
> handler code (be it logical or physical) wasn't something that would be 
> overcome by actually achieving my ideal scenario.

Well, if you're really trying to use an MVC design, the best thing to do 
would be to write a module that can calculate the data to be displayed 
for a box, call it from your handler, and then include a small template 
that displays that data in your main template.  That avoids any sort of 
"callback" where more data is added after entering the view section.  It 
also avoids the need for any subrequests.

A cleanly written plugin is a perfectly good way to do it though if you 
find that model easier to work with.

- Perrin



Reply via email to