Website

godoy on 2002-09-07T15:08:23

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:

  1. Edit every page adding the link (and do that for every other link in the future)
  2. Write a Template Toolkit template and recreate the pages automatically


Guess which one was my choice? Editing everything, of course! ;-) Just kidding. Moving everything to TT2. It will save me a lot of work. ;-)

God bless Perl and its tools.


php include

dc2000 on 2002-09-09T20:39:44

If your nail is a webserver where you don't have a shell account,
PHP include("link.inc"); is an easy hammer.

Re:php include

godoy on 2002-09-09T23:07:49

I'm more of the Perl kind of guy. :-)

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.