Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/templates/structure.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/structure.tpl  >  Download  
File: examples/templates/structure.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: 11 months ago
Size: 375 bytes
 

Contents

Class file image Download
{% extends master.tpl %}
{% block body %}
if..elseif..else..endif:

	{% if var in array and c in d %}
		var in and c in d
	{% elseif e in f %}
		e in f
	{% else %}
		false
	{% endif %}

for..empty..endfor

	{% for cat in cat_list %}
		|_ {{ cat.name }}
		{% for news in cat.news %}
			|_ {{ news.name }}
		{% empty %}
			|_ No news
		{% endfor %}
	{% endfor %}
{% endblock %}