Re: [PHP3] PHP Template Engine spec revision 0.35
[email protected] (Kristian Köhntopp) Thu, 24 Feb 2000 16:56:57 +0100
| Newsgroups | php.template |
|---|---|
| Organization | NetUSE GmbH |
| Message-ID | <[email protected]> |
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!)