Login   Register  
PHP Classes
elePHPant
Icontem

File: ex4.xtpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of barnabás debreceni  >  XTemplate  >  ex4.xtpl  >  Download  
File: ex4.xtpl
Role: ???
Content type: text/plain
Description: template file for ex4.p
Class: XTemplate
Template engine for PHP
Author: By
Last change:
Date: 14 years ago
Size: 929 bytes
 

Contents

Class file image Download
<!-- BEGIN: main -->
<html>
<head><title>example 4</title></head>
<body>
recursive parsing test.<br>
you can parse entire blocks+subblocks using rparse().<br>
<font color=red>note:</font> this will parse every subblock recursively inside the block you specified.<br><br>
here comes the test [ rparse("main") ]: ===&gt;<br><br>	
	<!-- BEGIN: block1 -->
	this is block 1.<br>

		<!-- BEGIN: subblock1 -->
		this is subblock 1.1<br>
		<!-- END: subblock1 -->
		<!-- BEGIN: subblock2 -->
		this is block 1.2<br>
		<!-- END: subblock2 -->

	<!-- END: block1 -->
	
	<!-- BEGIN: block2 -->
	this is block 2.<br>
		<!-- BEGIN: subblock1 -->
		this is subblock 2.1<br>
		<!-- END: subblock1 -->
		<!-- BEGIN: subblock2 -->
		this is block 2.2<br>
		<!-- END: subblock2 -->

	<!-- END: block2 -->

	<!-- BEGIN: block3 -->
		this is block 3.<br>
	<!-- END: block3 -->

</body>
</html>
<!-- END: main -->