[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] Printing Scripts to Browser




6/14/99, Richard Gordon wrote:
 >Anyway, does anyone know how to render html tags inert when they are
 >printed from a script to the browser? I've pasted in what I am using
 >at the moment and am looking for something that would tell the
 >browser to ignore the tags, yet still present them as ordinary text
 >in the window. Thanks.

Another solution is to keep HTML templates and code separate.  So you'd
have a template file...

	<HTML><BODY><PRE>
	</PRE></BODY></HTML>

...and at script init, read it into $Header, $Footer, and then use those
varbs when printing.  Besides solving the literal-html problem, it also
makes editing of the template more convenient when you decide to elaborate
it later - you can edit the template without modifying your scripts.

rkm
Wexford,
Ireland

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org