|
|
Choosing A Webhost: |
Re: Re: H::T future: msg#00038lang.perl.modules.html-template
On Tue, 9 Dec 2003, Roger Burton West wrote: RBW>The only alternative I can see is to set up a database of some sort RBW>which would contain the title for each page. This seems silly. That's pretty much what I've been doing (the part I snipped, that is), but now that I'm essentially turning the whole site into a Wiki, technically I *am* going to have an auto-generated title. Not in the database, though; it'll more likely be the site + web + Wiki Word (a la "Phoenyx : Members : Karen Cravens"). Which sort of eliminates the problem, for me, I guess, since it'll make the title code-generated. But right now, I'm doing it something like Cees described... each (content) page looks something like this: (include for the header fragment) Title Of The Page (include for another header fragment, up to the BODY tag) Menu Bar Or An Include For A Standard One (include for a formatting fragment) Main Content (include more formatting) Sidebar Or An Include For A Standard One (include for the ending formatting) I suppose some sort of interleaving function would be kind of neat, but I can't think of any elegant way to do it. The Wiki version flips that all around, and just has a main template with a TMPL_VAR for the title, menu bar, content, and sidebar. I may end up using sub-templates to generate some of that (a sort of simulated variable include), but more likely it'll be generic Wiki text files (TWiki, specifically). Though, come to think of it, I don't think H::T's variables/includes would be any harder to use than TWiki's, so I might end up with a hybrid. -- Karen J. Cravens silver@xxxxxxxxxxx ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: enhancements to H::T, Aaron J . Mackey |
|---|---|
| Next by Date: | Re: Re: H::T future, Karen J. Cravens |
| Previous by Thread: | Re: Re: H::T future, Roger Burton West |
| Next by Thread: | Re: Re: H::T future, Brett Sanger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |