Login   Register  
PHP Classes
elePHPant
Icontem

File: ex.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Reynier Blanco  >  ubtemplate  >  ex.tpl  >  Download  
File: ex.tpl
Role: Auxiliary data
Content type: text/plain
Description: file tpl
Class: ubtemplate
Template engine based on block replacing
Author: By
Last change: adding functionalities
Date: 5 years ago
Size: 400 bytes
 

Contents

Class file image Download
@include include
[<a>]
Bloque <h3>a</h3> con la variable "{{var}}"<br>
Ejemplo de un select:
<select>
{<<{b}>>}
</select><br>
{<{c}>}

<table border="1">
	<tr>
		<th>Value</th>
		<th>Text</th>
		<th>Otra celda</th>
	</tr>
	{<<{tr}>>}
</table>
[</a>]

[<b>]
<option value="{{value}}">{{text}}</option>
[</b>]

[<tr>]
	<tr>
		<td>{{value}}</td>
		<td>{{text}}</td>
		<td>{<{celda}>}</td>
	</tr>
[</tr>]