logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Re: H::T future: msg#00038

lang.perl.modules.html-template

Subject: Re: Re: H::T future

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>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation