PHP Classes

File: pattern1.html

Recommend this page to a friend!
  Classes of Outdated profile   lorenphplib_patternizer   pattern1.html   Download  
File: pattern1.html
Role: Example script
Content type: text/plain
Description: An example pattern
Class: lorenphplib_patternizer
Build PHP applications based on HTML pattern files
Author: By
Last change:
Date: 21 years ago
Size: 1,211 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <title>Patternizer test</title>
</head>

<body>

<B>Patternizer test pattern</B><br>
<br>
A call to myclass::dosomething(), without parameters: <%myclass:dosomething%>
A call to myclass::dosomething2(), with 1 parameter: <%myclass:dosomething2:anything%>
A call to myclass::dosomething3(), with 2 parameters: <%myclass:dosomething3:anything1:anything2%>
<br>
A call to patternizer:patternize(), recursively includes another pattern: <%patternizer:patternize:pattern2.html%>
<br>
<br>
Forcing some errors:<br>
<br>
An empty tag: <%%><br>
A class without method tag: <%myclass%><br>
An unrecognyzed class: <%nonexistentclass:nonexistentmethod%><br>
An unrecognyzed method: <%myclass:nonexistendmethod%><br>
A class and method with too many number of parameters: <%myclass:dosomething:anything%><br>
A class and method with too less number of parameters: <%myclass:dosomething2%><br>
A class and method with too less number of parameters: <%myclass:dosomething3:anything%><br>
An attempt to in-pattern include a non-existent pattern: <%patternizer:patternize:nonexistentpattern.html%><br>
</body>
</html>