rafaelss / joeh-template

Template engine for PHP5

This URL has Read+Write access

joeh-template / README
252f2622 » rafaelss 2008-12-22 better readme 1 Joeh-Template is a fast template engine for PHP5, using pure PHP syntax, and generating PHP compatible code for all PHP installations.
2 The main idea is just let developers to use PHP inside templates, but without let that developers write ugly code, difficulting manutenability.
3
4 Functionalities:
5185f473 » rafael User 2008-05-26 added some project notes 5
6 1 - PHP tags must close in same line that were opened:
7
8 good:
9 <? if($var) { ?>
10 <p>that's ok</p>
11 <? } ?>
12
13 bad:
14 <?
15 if($var) {
16 ?>
252f2622 » rafaelss 2008-12-22 better readme 17 <p>oopss, wrong syntax</p>
5185f473 » rafael User 2008-05-26 added some project notes 18 <?
19 }
20 ?>
21
252f2622 » rafaelss 2008-12-22 better readme 22 2 - Short PHP tags will be replaced for long tags in compiled code, for compability purposes
5185f473 » rafael User 2008-05-26 added some project notes 23
24 from:
25 <? if($var) { ?>
26 <?= $var ?>
27 <? } ?>
28
29 to:
30 <?php if($var) { ?>
31 <? echo $var ?>
252f2622 » rafaelss 2008-12-22 better readme 32 <?php } ?>