1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
<!--
##
## demo.html -- ePerl demonstration webpage
## Copyright (c) 1996,1997 Ralf S. Engelschall, All Rights Reserved.
##
-->
<html>
<head>
<title>demo.html</title>
</head>
<body>
<blockquote>
<blockquote>
<h1>demo.html</h1>
<h2>High-level HTML programming with HTML::Stream</h2>
<p>
This demonstrates how one can use the HTML-Stream package from
within ePerl to do high-level HTML programming.
<?
use HTML::Stream;
my $HTML = new HTML::Stream \*STDOUT;
!>
First, a programmed hyperlink to
<? $HTML->
A(HREF=>"http://www.engelschall.com/sw/eperl/")->
t("the ePerl webarea")->
_A; !> .
<p>
Second, just
<? $HTML->t("plain text with umlaut characters: \n" ); !>.<br>
These were automatically converted from ISO-Latin-1 encoding to
HTML entities.
</blockquote>
</blockquote>
</body>
</html>
|