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/
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/