| (Top) < CGI.pm considered, eh, not so good | Using Templates (con't): > |
A template file consists of the page HTML with place holder tags for variables that your code will fill.
Example using HTML::Template:
Create a file, say, cost.tmpl:
<html>
<head>
<title>Welcome to St. Pat's Drink-o-Mat!</title>
</head>
<body>
<p>Your bill will be $<b><TMPL_VAR NAME="COST"></b>.</p>
</body>
</html> |
|
CGI::Application (v.2.0) |
24 |