public
Description: Template engine for PHP5
Homepage: http://rafaelss.com/
Clone URL: git://github.com/rafaelss/joeh-template.git
commit  ce0af69e3cafc9564b472ce534a94047398817b9
tree    ab19b51e0f2f59248b0580d14266aef16c29f50f
parent  fab924f8bee5fb2197a64315599ca9717b057691
name age message
file .gitignore Thu Jan 22 18:49:30 -0800 2009 added gitignore file [rafaelss]
file MIT-LICENSE Thu Aug 28 10:06:39 -0700 2008 alterando meus dados [rafaelss]
file README Mon Dec 22 05:07:02 -0800 2008 better readme [rafaelss]
directory assets/ Mon May 26 20:18:35 -0700 2008 base template class and test files [rafael User]
directory coverage/ Mon May 26 20:18:35 -0700 2008 base template class and test files [rafael User]
directory lib/ Wed Feb 04 03:39:49 -0800 2009 added two options for Form::select helper, text... [rafaelss]
directory tests/ Mon Nov 17 08:19:57 -0800 2008 added check before compile template, to not com... [rafaelss]
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 } ?>