Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Static Data for Websites

by arunhorne (Pilgrim)
on May 29, 2002 at 10:19 UTC ( [id://170023]=perlquestion: print w/replies, xml ) Need Help??

arunhorne has asked for the wisdom of the Perl Monks concerning the following question:

Hi all...

I'm about to create a new wesbite and I thought it would be a good opportunity to investigate a few tricks that could be pulled off with Perl. Its going to be a very simple affair, links down the left hand side, contents appearing on the right. What I thought it would be nice to do would be to have some sort of static file on the server that contains the links to appear on the left, and then in the static file also something telling what html/pl file holds the actual contents...

So... the menu bar gets generated automatically and all I have to do to add a new page is create the actual contents and add a reference to it in some sort of static data file (e.g. a CSV file). eg ..

Home,index.pl?node=home My Work,index.pl?node=work ...

Update:I've replaced this paragraph because people seemed to take offence at it and think that I hadn't used the search for HTML modules. I had. What I was asking was which ones people preferred and why - i.e. constructive criticism... I'm not lazy, I'm interested in other peoples opinions. Please think before you downvote.

Thanks.

____________
Arun

Replies are listed 'Best First'.
Re: Static Data for Websites
by Zaxo (Archbishop) on May 29, 2002 at 10:31 UTC
Re: Static Data for Websites
by cLive ;-) (Prior) on May 29, 2002 at 10:35 UTC
    You could do, or you could just create one menu and use SSI instead (less work == lazy == good) - ie, where menu goes, put:
    <!--#include virtual="/menu.html"-->

    You may have to save file as .shtml instead of .htm(l) - depends on server. Then create menu.html to contain the menu html.

    As for website templating, perhaps using search before asking would be useful?

    .02

    cLive ;-)

    --
    seek(JOB,$$LA,0);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://170023]
Approved by Zaxo
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-19 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found