Gossamer Forum
Home : General : Perl Programming :

Dynamic pages using templates?

Quote Reply
Dynamic pages using templates?
This should be an easy one for you folks, but it's stumped this perl/cgi novice.

Consider a songwriter's website with 50 lyrics pages, each containing a single song. Rather than building and maintaining these 50 near-identical pages, I'd like to be able to design a single template file with placeholders (e.g. <!!title> ) where the data fields should go.

A source file with some sort of delimited fields (e.g. new lines, blank lines, whatever) would contain the data (text/HTML), which would replace the placeholders in the template when a user requested a particular page.

I believe the template and the data would be read into the script, and a merged document would be written out. Problem is, I have very little knowledge of perl/cgi and do not know how to accomplish this feat.

If anyone could provide help and/or some sample code I'd be most grateful.
Subject Author Views Date
Thread Dynamic pages using templates? ecn 8823 Apr 23, 1999, 10:36 AM
Post Re: Dynamic pages using templates?
dahamsta 8572 Apr 23, 1999, 2:16 PM
Post Re: Dynamic pages using templates?
ecn 8581 Apr 23, 1999, 7:09 PM
Post Re: Dynamic pages using templates?
dahamsta 8591 Apr 24, 1999, 4:14 AM
Post Re: Dynamic pages using templates?
ecn 8597 Apr 26, 1999, 6:56 PM
Post Re: Dynamic pages using templates?
dahamsta 8581 Apr 27, 1999, 1:26 AM
Post Re: Dynamic pages using templates?
ecn 8610 Apr 27, 1999, 10:24 AM
Post Re: Dynamic pages using templates?
dahamsta 8570 Apr 27, 1999, 3:18 PM
Post Re: Dynamic pages using templates?
ecn 8574 Apr 27, 1999, 4:55 PM
Post Re: Dynamic pages using templates?
dahamsta 8649 Apr 28, 1999, 8:11 AM
Post Re: Dynamic pages using templates?
ecn 8575 Apr 28, 1999, 8:39 PM
Post Re: Dynamic pages using templates?
dahamsta 8608 Apr 29, 1999, 1:07 AM
Post Re: Dynamic pages using templates?
WilHatfield 8640 Feb 27, 2000, 11:58 PM
Post Re: Dynamic pages using templates?
Stealth 8610 Feb 28, 2000, 6:20 PM
Post Re: Dynamic pages using templates?
WilHatfield 8619 Mar 1, 2000, 7:27 PM
Post Re: Dynamic pages using templates?
Stealth 8570 Mar 1, 2000, 7:32 PM
Post Re: Dynamic pages using templates?
WilHatfield 8582 Mar 4, 2000, 6:02 PM