ET (Easy Template) is the ultimate template engine: fast, simple, powerful, and "html-readable".
  1. Quick show:
  2. You can see here how ET (Easy Template) is more powerful than any classical template engine. There's no more limits than with php itself ;-) The limit is the purpose: a clean separation between processing and presentation. Just see samples, and benchmark:

    A variable Parsed A loop structure Parsed Sample if-then-else Parsed
    {title}

    The variable was defined like that:

    $title = 'Easy Template'
    Easy Template <!--{foreach($list as $key=>$v):}-->
    {$key;}={$v;}
    <!--{endforeach;}-->

    $list is an array defined in the php
    before parsing the template, like this:


    $list = array('key1'=>'item1',
    'key2'=>'item2',
    'key3'=>'item3');
    key1=>item1
    key2=>item2
    key3=>item3
    if true:
    <!--{if(true):}-->
        return true
    <!--{else:}-->
        return false
    <!--{endif;}-->;
    if true:
    return true

  3. A robust system:
  4. The non-existing variables like {bug} or {contents} are leaved unchanged. They do not cause parsing errors.