Login   Register  
PHP Classes
elePHPant
Icontem

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

Contents

Class file image Download
<!-- BEGIN: main -->
<html>
<head><title>example 7</title></head>
<body>
you can include template files inside another one, even recursively!<br>
for example:<br>
{FILE "ex7-inc.xtpl"}
<br><br><br>
if your include file contains blocks, you start its name it with tha original file's actual block..
 (the FILE directive gets replaced by the file contents, and the whole thing gets parsed)<br>
 example:<br>
<br>
		<!-- BEGIN: inc -->
		included file follows: {FILE "ex7-inc2.xtpl"}
		<!-- END: inc -->
<br>

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