The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--?
#     Template: test.tmpl
#      Created: 07-23-2002
#     Modified: 07-23-2002
#       Author: wlm
#  Description: Template to do terrible things to test Petal template language.
-->
<html xmlns:petal="http://purl.org/petal/1.0/"
petal:set="align last_name; align_opposite first_name"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>Petal Stress Test Template</title>
</head>
<?include file="includes/header.tmpl" taint="1"?>
<body>
<h3>The tags:</h3>

<ul>
<li><span petal:content="first_name">First</span></li>

<li><span petal:content="last_name">Last</span></li>

<li><span petal:content="email">Last</span></li>
</ul>

<h3>The Tests</h3>

<p>0. Inline variable with underscore: $last_name</p>

<p>$align - $align_opposite - Hello World</p>

<p>1. A tag within an html tag property doesn't work, in some
cases. Works if there is no include tag above it. Does not work if
there is an include tag above it.<br />
<a href="mailto:&lt;?var name=">"&gt;Email</a></p>

<p>2. Two tags in a row will only show the first, or nothing at
all. I'm not sure why this format isn't working at all in this test
template. It does work in another of my templates. Perhaps it is
due to the error in the above tag. Commenting out the above tag
doesn't seem to make any difference, though. Do tags inside of
comments get executed?<br />
<?var name="first_name"?>
<br />
<?var name="first_name"?>
 <?var name="last_name"?>
</p>

<p>3. Includes don't always work. Try moving one of the tags to the
top and see the results. Rather curious... If you move the footer
to the top, you'll see that it gets shown twice if you have 2
footer includes statements following it; if you remove the last one
just above the /body tag, you'll see the one after header isn't
working, but further ones do. There is apparently something in the
header.tmpl document which is causing Petal to not perform the next
includes. In fact, you can keep adding footer includes and get more
and more results as expected.<br />
<?include file="includes/header.tmpl" taint="1"?>
</p>

<p>This include won't get displayed</p>

<?include file="includes/footer.tmpl" taint="1"?>
<h3>End Tests</h3>

<?include file="includes/footer.tmpl" taint="1"?>
</body>
</html>