in reply to Re^2: Template modules, logic, and SOC
in thread Template modules, logic, and SOC
One of the problems I can see, though, is that for some kinds of output you'll either end up writing "one-off" callbacks, which means you'll now have highly integrated code and template fragments that you'll need to keep in sync spread over multiple files.
In those cases, you may be better off either writing a function that just returns the complete HTML fragment, or putting the formatting details in code in the template directly, just to make it clear what's going on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Template modules, logic, and SOC
by arbingersys (Pilgrim) on Jan 23, 2008 at 21:01 UTC |