public
Description: Template engine for PHP5
Homepage: http://rafaelss.com/
Clone URL: git://github.com/rafaelss/joeh-template.git
joeh-template / README
100644 32 lines (25 sloc) 0.701 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Joeh-Template is a fast template engine for PHP5, using pure PHP syntax, and generating PHP compatible code for all PHP installations.
The main idea is just let developers to use PHP inside templates, but without let that developers write ugly code, difficulting manutenability.
 
Functionalities:
 
1 - PHP tags must close in same line that were opened:
 
  good:
  <? if($var) { ?>
    <p>that's ok</p>
  <? } ?>
 
  bad:
  <?
  if($var) {
    ?>
    <p>oopss, wrong syntax</p>
    <?
  }
  ?>
 
2 - Short PHP tags will be replaced for long tags in compiled code, for compability purposes
 
  from:
  <? if($var) { ?>
    <?= $var ?>
  <? } ?>
 
  to:
  <?php if($var) { ?>
    <? echo $var ?>
  <?php } ?>