On Wed, 13 Oct 2004, Anish Kumar K. wrote:
I wrote a program which will replace all the hardcoded things to some
values specific to one client. for example designed a template with
body bgcolor=%bg_color%?.
Are you using a template package like HTML::Template, Template Toolkit,
or Mason?
If not, why not?
This is a solved problem.
If you use the existing libraries, you shouldn't have to deal with
problems like this, and you can focus on what you really want to
accomplish with your programs.
One way or another, it is impossible for anyone here to help you without
seeing the code you're using, and you have shown none. However, if the
code is using some kind of hand-rolled template system, the obvious fix
is to switch to one of the standard ones. They're easy to use, they can
be very flexible (especially, in different ways, TT and Mason), and
using them is a hell of a lot better than doing this from scratch! :-)
--
Chris Devers
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response