Re: [htmltmpl] Re: H::T future
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2003-12-20 11:13:32
|
On Tue, Dec 09, 2003 at 03:29:55AM -0500, Brett Sanger wrote: >I can see how this is too involved for a handful of pages, but I don't >see it as "silly" for any site of size. The problem I have with it is that, when you add a page, you need to add both the file and the database entry. For the main site I administer with H::T, I use my Set extension and have a few lines at the top: <!-- tmpl_set name=title value=Personnel --> <!-- tmpl_set name=related0 value=/ --> <!-- tmpl_set name=related1 value=contact.html --> <!-- tmpl_include name=top.inc.tmpl> (actual page content here) <!-- tmpl_include name=bottom.inc.tmpl> The site-building script takes these, adds appropriate headers and <title> tags and so on, and (in a two-pass process) builds all the related-pages lists with full titles too. So if I change a page's title, or want to add or delete a related page, I just have one file to do it in. Everything about that page is in a single place. Roger |