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  [EMAIL PROTECTED]



-------------------------------------------------------
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
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to