PHP Classes

File: test.tpl

Recommend this page to a friend!
  Classes of shahnur   AHM Template Engine   test.tpl   Download  
File: test.tpl
Role: Example script
Content type: text/plain
Description: Test Template File
Class: AHM Template Engine
Template engine that uses regular expressions
Author: By
Last change: # Use '.count' after array name to set limit = number of element in the array
Date: 15 years ago
Size: 496 bytes
 

Contents

Class file image Download
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
Welcome to <b>#$myZone#</b><br>
Here's a <b>loop</b> example below
<ul>
#repeat [limit=$myLoop.count] [interval=1] [index=loopIndex]#
<li>#$myLoop.loopIndex#</li>
#xrepeat#
</ul>

Here's a <b>2nd loop</b> example below
<ul>
#repeat [limit=10] [interval=3] [index=loopIndex]#
<li>#$myLoop.loopIndex#</li>
#xrepeat#
</ul>

</body>

</html>