rafaelss / joeh-template
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
ce0af69
joeh-template / README
| 252f2622 » | rafaelss | 2008-12-22 | 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 | 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 | 17 | <p>oopss, wrong syntax</p> | |
| 5185f473 » | rafael User | 2008-05-26 | 18 | <? | |
| 19 | } | ||||
| 20 | ?> | ||||
| 21 | |||||
| 252f2622 » | rafaelss | 2008-12-22 | 22 | 2 - Short PHP tags will be replaced for long tags in compiled code, for compability purposes | |
| 5185f473 » | rafael User | 2008-05-26 | 23 | ||
| 24 | from: | ||||
| 25 | <? if($var) { ?> | ||||
| 26 | <?= $var ?> | ||||
| 27 | <? } ?> | ||||
| 28 | |||||
| 29 | to: | ||||
| 30 | <?php if($var) { ?> | ||||
| 31 | <? echo $var ?> | ||||
| 252f2622 » | rafaelss | 2008-12-22 | 32 | <?php } ?> | |
