CGI-Application-Framework
view release on metacpan or search on metacpan
caf_project/Example/applications/example_4/templates/main_view.tmpl view on Meta::CPAN
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Web MVC Framework Example Application #4 -- Main View</title>
<link rel="stylesheet" href="[% url_examples_css %]" type="text/css" />
</head>
<body>
<div id="banner">
<h1>CGI::Application::Framework</h1>
<h2>Example Pages</h2>
</div>
[% CGIAPP.embed("make_navbar") %]
<h1>Web MVC Framework Example Application #4 -- Main View</h1>
<h2>Template::Toolkit version</h2>
<pre>
[% INCLUDE 'README-tt.txt' %]
</pre>
<h2>Includes</h2>
<p>
The navbar at the top of the page is now an include of the new version from Example 3.
</p>
<p>
<a href="[% SELF_HREF_LINK %]">
<b>Click me to reload this page...</b>
</a>
</p>
<p>
The purpose of this example application is to demonstrate the use of
the "embed" tag within HTML::Template templates which are used to
display the content of one run mode within another run mode.
Inspect this source .html file to see how "embed" is used.
</p>
<p>
<b>Number of times you have loaded this page:</b>
[% load_count %]
</p>
1.
<hr />
[% CGIAPP.embed("outer_component") %]
<hr />
2.
<hr />
[% CGIAPP.embed("outer_component") %]
<hr />
( run in 1.755 second using v1.01-cache-2.11-cpan-140bd7fdf52 )