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