Login   Register  
PHP Classes
elePHPant
Icontem

File: general.tpl

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Eduardo Henrique Molina da Cruz  >  Perfect Templates  >  general.tpl  >  Download  
File: general.tpl
Role: Auxiliary data
Content type: text/plain
Description: Template file example
Class: Perfect Templates
Template engine based on regular expressions
Author: By
Last change:
Date: 11 years ago
Size: 1,176 bytes
 

Contents

Class file image Download
<html>
<head>
<title>Teste</title>
</head>
<body>

Nome: {var:teste1}<br>
Idade2: {var:idade2} <br>
Idade2: {var:idade2} 

{if:if1 var:idade2 == 16}
Ohhhhhhhhhhh {var:idade2} <p>
{/if:if1}

{else:if1}
afff vai caga meu
{/else:if1}

<br>
Insere: {include:file1}

<br><hr>
{loop:loop1}<p>
Email: {var:loop1:email}<br>
Idade: {var:loop1:idade}<br>
Idade de novo: {var:loop1:idade}

	{loop:inter}<br>
		Postado {var:inter:number} tickets no {var:inter:section} pelo {var:loop1:name} 
	{/loop:inter}<br>
{include:file2}<br>
</p>

{if:teste var:teste1 == "eduardo" AND var:loop1:email == "teste-email"}
	certooo <br>df
{/if:teste}

{elseif:teste var:teste1 == "eduaro"}
fgfdgdsfg
{/elseif:teste}

{elseif:teste var:teste1 == "eduaro2"}
afgfdgdsfgghgfhgfjhjfk
{/elseif:teste}

{elseif:teste var:teste1 == "camper"}

	subif: <br>

	{if:subif1 var:subteste == "5"}
		aeeew
	{/if:subif1}

	{elseif:subif1 var:subteste == "3"}
		aceitável
	{/elseif:subif1}

	{elseif:subif1 var:subteste == "2"}
		ihhh...
	{/elseif:subif1}

	{else:subif1}
		droga...
	{/else:subif1}
	
	<br>sdc

{/elseif:teste}

{else:teste}
	erradooo {}
{/else:teste}

{/loop:loop1}
<hr>
{include:file5}
</body>
</html>