rafaelss / joeh-template

Template engine for PHP5

This URL has Read+Write access

rafaelss (author)
Thu Jan 29 11:37:58 -0800 2009
commit  521a53da9545b2c5e637486864333ec9b8a6b187
tree    4104dd4114567c91c929fb388041fe25775bfcfb
parent  ffc5e2367f8e4dad995ffb64d45afc71bd3c855b
name age message
file .gitignore Loading commit data...
file MIT-LICENSE
file README
directory assets/
directory coverage/
directory lib/
directory tests/
README
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 } ?>