Re: [htmltmpl] Re: H::T future
Brought to you by:
samtregar
From: Karen J. C. <si...@ph...> - 2003-12-09 22:30:41
|
On Tue, 9 Dec 2003, Puneet Kishor wrote: PK>well, now that you put it that way, I feel I might be the one who is not PK>really understanding what you all are saying, and hence, am perhaps PK>barking tangentially ;-). I think it's just a matter of different approaches. The way I've been doing it, as I described earlier, the content was in a template. It relied on includes to pull the HTML in, and I had to do interleaved includes to get the title (among other things) in. Which is no big deal, other than it necessitates putting rather more structure in each content-template than I'd really like to have. If, on t'other hand, you start with a master template and stuff the content in via TMPL_VARs, you can stuff the title just as well as the main content... but then you lose the ability to have TMPL_VARs within the content you're stuffing. Unless, as I'll probably end up doing, you're processing the content as a nested template, a la: $page->param("content", $subpage->output)). There are advantages and drawbacks to either approach. -- Karen J. Cravens si...@ph... |