in reply to html template in a perl script
Sounds like a reasonable way to organize things to me, as long as your CGI scripts are quite simple. I wouldn't use that model myself, because I use lots of includes in my templates to provide a consistent look and feel to the application. But if your scripts only needs one template, then the DATA method seems like a good option...
It will also be slightly quicker than an external template, since perl will only need to access one file, instead of opening two.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: html template in a perl script
by bradcathey (Prior) on Sep 21, 2003 at 13:18 UTC | |
by jeffa (Bishop) on Sep 21, 2003 at 15:56 UTC | |
by cees (Curate) on Sep 21, 2003 at 16:08 UTC | |
|
Re: Re: html template in a perl script
by archen (Pilgrim) on Sep 24, 2003 at 16:26 UTC |