I think I've seen something like this before... hang on, isn't it called PHP???

Could you explain what advantages you see in doing it this way, as I can't 
see any :-(


At 11:00 PM 12/10/01 +0100, Wolfram Kriesing wrote:
>(just in case any of the people on PEAR-DEV will read this at all,
>since everyone must be tired of the template class debates :-)  )
>i just wanted to say what i had to write, because i didnt see any of
>the existing template classes/engines provide me with that
>the main features are:
># compiling template class which (almost) only replaces '{' by <?php
>and '}' by ?>, with pre and post filters
># uses indention to create the '{' and '}' for php-code inside the
>template, so clean code is a requirement and no closing tags like:
>{/if} are needed
># leaves all the power of php to you, not only the functionality the
>template engine implements
># nothing to learn, just use '{' and '}' instead of the php-tags in
>your template and indent your code properly
># the seperation of source and representation is all up to the
>programmer (either this is good or bad)
># provides some default filter
>a possible template
>     {foreach($disadvantages as $aDisadvantage)}
>         <li>{$aDisadvantage}</li>
>     no disadvantages registered yet :-)
>the compiled code is nothing more than this
><?php if(sizeof($disadvantages)) { ?>
>     <?php foreach($disadvantages as $aDisadvantage) { ?>
>         <li><?=$aDisadvantage?></li>
><?php }  }  else { ?>
>     no disadvantages registered yet :-)
><?php }  ?>
>so you can see - easy to use, nothing to learn and should be fast :-)
>feel free to have a look at
>     http://wolfram.kriesing.de/programming/
>PS: BTW what was the decision on a multiple classes in PEAR
>which do the same thing?
>PEAR Development Mailing List (http://pear.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

Narrow Gauge on the web - photos, directory and forums!
Peter's web page - Scottish narrow gauge in 009

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to