Re: block functions

From: Date: Thu, 21 Mar 2002 17:57:00 +0000
Subject: Re: block functions
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3223@lists.php.net to get a copy of this message
I guess that we can have two results from page.php?name=ROBERTO+BERTO ---------------------------------------- {highlight bgcolor="#FF0000" color="#FFFFF" width="100%"} {$smarty.get.name} {/highlight} ---------------------------------------- The first is, and in this result, Block Precedence is lower than other Smarty Plugins/Functions and Variables: --------------------------------------------- <table bgcolor=#FF0000 width=100%> <tr><td><div align=center><font color=#FFFFFF>ROBERTO BERTO</font></div></tr></tr></table> --------------------------------------------- Second result is: --------------------------------------------- <table bgcolor=#FF0000 width=100%> <tr><td><div align=center><font color=#FFFFFF>{smarty.get.name}</font></div></tr></tr></table> --------------------------------------------- At first, the Block Function is a PostFilter Plugin that you easly can create. Atenciosamente, ---------------------------------------- Roberto Bertó Under Development http://www.under.com.br Tel: 51 32270599 Cel: 51 91169628 ----- Original Message ----- From: "Andrei Zmievski" <andrei@ispi.net> To: "Roberto Berto" <roberto@berto.net> Cc: <smarty@lists.ispi.net> Sent: Thursday, March 21, 2002 2:51 PM Subject: Re: [smarty] Re: block functions > On Thu, 21 Mar 2002, Roberto Berto wrote: > > Custom Function came Block Function. Looks nice. > > > > IMHO, you should add the compiler of Block Function with Precedence higher > > than Post-Filter but lower than Custom functions. So, if someone use: > > What does precedence have to do with it? > > -Andrei > > The main reason Santa is so jolly is because he knows where > all the bad girls live. -- George Carlin > >

« previous php.smarty.general (#3223) next »