RE: [PHP Template] Revised proposal

From: Date: Thu, 17 Feb 2000 23:17:18 +0000
Subject: RE: [PHP Template] Revised proposal
References: 1  Groups: php.template 
Request: Send a blank email to php-template+get-129@lists.php.net to get a copy of this message
Well, an IF statement might be a bad example. I was actually more interested in just variables. So if {{sitename}} was encountered w/o an alt it could be removed, commented, error reported, or auto-assigned, as per .ini setting. As I said, though, it was just a crazy idea. This is essientially an even lazier/sloppier version of the batch_assign idea tossed around earlier, but would be done automatically as a last-case fallback if so set in the .ini. Travis -----Original Message----- From: Andrei Zmievski [mailto:andrei@ispi.net] Sent: Thursday, February 17, 2000 6:11 PM To: Dan Libby Cc: Travis E. Sitzlar; php-template@lists.php.net Subject: Re: [PHP Template] Revised proposal On Thu, 17 Feb 2000, Dan Libby wrote: > my system actually had an alt="value" tag for unknowns. So for example: > > Welcome to {{sitename alt="Mysite.com"}} > > I think it is a pretty clean way of handling it in the templates without any > code changes required. There was also an option to autohide an entire > section if it contained unknowns with no alt attributes. This is useful for > example to hide a table when no results are returned. I'll add those to the proposal, Dan. But I think what the other guy meant was that if you see variable in an 'if' statement and it has no value, then it would be auto-assigned. -Andrei * Change is the only constant. *

« previous php.template (#129) next »