PHP Classes
elePHPant
Icontem

File: examples/templates/master.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jin Nguyen  >  Puja  >  examples/templates/master.tpl  >  Download  
File: examples/templates/master.tpl
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Puja
Template engine that compiles templates into PHP
Author: By
Last change:
Date: 1 year ago
Size: 4,323 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Puja examples</title>
<style>
	body{
		margin:0px;
		background:lemonchiffon;
	}
	.current_bug{
		color:red;
	}
	.header{
		background:darkred;
		padding:10px;
	}
	.content{
		padding-left:10px;
	}
	ol{
		border: 1px solid #ccc;
		padding-top:10px;
		padding-bottom:10px;
		background:#fff;
	}
	ol li{
		padding:2px 0px 2px 40px;
		border-bottom:1px solid #eee;
	}
	
</style>
</head>
<body>
<div class="header">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAZCAYAAACis3k0AAAAGXRFWHRTb2Z0d2Fy
ZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAA
AAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5U
Y3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6
eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8w
Mi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpE
ZXNjcml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bCTHvstj6nJJqeGPSLn/q
i/wfAGIvfr5mOELtrxaSpOGE20ZGu3yFn1Ti8RJLM8C+yTSPBMBFPF4vvAf23DiC
jgTZT5baWAGAzUKdfriJkI/s4WTXvGo1YB6YszeHVIvnN5Oxzr+iHHMPQQB7mo0j
WHQrQDSVzim2aYHMqVaat2DpSwYtOOzGN9C++tsReq99942ZeWX7T4ABAFyslfiB
TqE0AAAAAElFTkSuQmCC" alt="Puja" /></div>
<div class="content">
<table width="100%">
	<tr>
		<td width="20%" valign="top">
			<a href="index.php">Hello world</a><br />
			<a href="variable.php">Variables</a><br />
			<a href="structure.php">Control Structures</a><br />
			<a href="subtemplate.php">Sub Template</a><br />
			<a href="filter.php">Filters</a><br />
			<a href="custom.php">Custom filters and tags</a><br />
			<a href="build_compress.php">Build compress version</a><br />
		</td>
		<td valign="top">
		{% block master %}
		Master template: <a href="templates/master.tpl">master.tpl</a>
		<br /><br />
		Template {$ tpl_file $}:
		<pre>
{% get_file {$ tpl_file $}   escape   %}
		</pre>
		PHP File
		<pre>
			{{ php_file }}
		</pre>
		Result:
		<pre>
		{% block body %}{% endblock %}</pre>
		{% endblock %}
		</td>
	</tr>
</table>
</div>
{% block javascript %}{% endblock %}
</body>
</html>