My brother wrote the basics of our website and I had optimized a little the job of maintaining it by creating a template with correct and indented HTML.
Now, I've added a new page that I want to be available as a link on every other page. Two choices:
Guess which one was my choice? Editing everything, of course!
God bless Perl and its tools.
php include (Score:1)
PHP
include("link.inc");is an easy hammer.dc
Re:php include (Score:1)
As I said, I used TT2 and moved everything in 5 minutes. Now, whenever I want to add a new box or something to every page, I just have to edit the template and it's done.
I may also have templates that call other templates, and then differentiate what appears in every page.
And I can have variables there.
And the best thing: the ISP has just to support plain HTML and CSS files. No PHP, no Perl, no mod_perl, no nothing. Everything is done here and ftp'ed there.
-- Godoy.