Login   Register  
PHP Classes
elePHPant
Icontem

File: ex6.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  >  ex6.xtpl  >  Download  
File: ex6.xtpl
Role: ???
Content type: text/plain
Description: template file for ex6.p
Class: XTemplate
Template engine for PHP
Author: By
Last change:
Date: 14 years ago
Size: 663 bytes
 

Contents

Class file image Download
<!-- BEGIN: main -->
<html>
<head><title>example 6</title></head>
<body>
with SetNullBlock you can set the default value to put if the block doesn't get parsed.<br>
the default is to wipe it out, but you can set it up to put a custom string.<br>

<!-- BEGIN: block -->
	
	<br>{INTRO_TEXT}<br>
	
	<b>sub blocks begins here ==&gt; [</b>
	
	<!-- BEGIN: subblock1 -->
	<b>this is subblock1 _PARSED_</b>
	<!-- END: subblock1 -->

	<!-- BEGIN: subblock2 -->
	<b>this is subblock2 _PARSED_</b>
	<!-- END: subblock2 -->
	
	<b>] &lt;== sub blocks ends here.</b><br>

<!-- END: block -->

<br><br>..got it? :) 
</body>
</html>
<!-- END: main -->