Gossamer Forum
Home : Gossamer Threads Inc. : Discussion :

Re: Bulletin Board

Quote Reply
Re: Bulletin Board In reply to
A template is really simple.

You create your page, but you use a tag <%tag_name%> for replaceable data.

For instance, to put a header on each page, that is the same (or even different in some ways), you'd set your template page:

<%include header.txt%>

The tag above would be replaced by the contents of the file header.txt in the default templates directory.

Really easy to edit one header.txt file than 10,000 hard-coded pages on a site!

Same with a file like "navi_bar.txt"

You can include that, then change the navigation links by editing one file, not every page.

<% %> marks the begin/end of a tag.

Very, very easy to use, to maintain, and easier than HTML or perl :)


http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Subject Author Views Date
Thread Bulletin Board Dave63 11653 Jun 30, 2000, 2:51 PM
Post Re: Bulletin Board
Stealth 11482 Jul 2, 2000, 9:54 PM
Post Re: Bulletin Board
Bearwithme 11462 Jul 3, 2000, 12:44 AM
Post Re: Bulletin Board
Michael_Bray 11449 Jul 3, 2000, 4:45 AM
Thread Re: Bulletin Board
pugdog 11404 Jul 8, 2000, 12:24 AM
Thread Re: Bulletin Board
Alex 11404 Jul 8, 2000, 9:00 AM
Post Re: Bulletin Board
pugdog 11399 Jul 8, 2000, 9:59 AM
Thread Re: Bulletin Board
JPDeni 11370 Jul 9, 2000, 3:49 AM
Thread Re: Bulletin Board
pugdog 11364 Jul 9, 2000, 11:04 AM
Thread Re: Bulletin Board
JPDeni 11352 Jul 9, 2000, 12:06 PM
Thread Re: Bulletin Board
pugdog 11350 Jul 9, 2000, 1:57 PM
Thread Re: Bulletin Board
JPDeni 11355 Jul 9, 2000, 2:17 PM
Thread Re: Bulletin Board
pugdog 11366 Jul 9, 2000, 5:34 PM
Thread Re: Bulletin Board
JPDeni 11349 Jul 9, 2000, 11:25 PM
Thread Re: Bulletin Board
Dan Kaplan 11316 Jul 10, 2000, 10:17 AM
Post Re: Bulletin Board
JPDeni 11290 Jul 10, 2000, 12:02 PM
Post Re: Bulletin Board
darb 11369 Jul 9, 2000, 3:42 AM