Re: [PHP3] PHP Template Engine spec revision 0.35

From: Date: Thu, 24 Feb 2000 15:56:57 +0000
Subject: Re: [PHP3] PHP Template Engine spec revision 0.35
References: 1 2 3 4 5 6  Groups: php.template 
Request: Send a blank email to php-template+get-217@lists.php.net to get a copy of this message
Andrei Zmievski wrote: > Ok, I posted the updated Revision 0.36 at > http://va.php.net/~andrei/tpl-engine-spec.txt. The comments are > now > represented with {{* .. *}}, and the comparison operators can be either > mathematical (==, !=, etc.) or Perl-like (eq, ne, etc.). Another issue: I think it is pretty pointless to define the replacement delimiters in a config file. I think they should have a resonable default and be defined to non-default values in the particular template that is using the non-default value. Perhaps as follows: If the first line of the template file is a magic comment {{* delim word1 word2 word3 *}} as in {{* delim << >> \ *}} then word1 is being used as the opening delimiter, word2 as the closing delimiter and word3 as the escape prefix. That is, within that file, <<$blah>> can be used as a placeholder for the variable $bla and \<< can be used to output << literally. Kristian -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!)

« previous php.template (#217) next »