Re: [SMARTY-DEV] Re: block function issue

From: Date: Mon, 27 Jan 2003 16:05:38 +0000
Subject: Re: [SMARTY-DEV] Re: block function issue
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-637@lists.php.net to get a copy of this message
Hello, the patch was from me. On Mon, Jan 27, 2003 at 09:22:48AM -0600, Monte Ohrt wrote: > I just need to know the utility of it. Maybe the existing block function > could be altered instead of two separate block functions. the utility for it is everywhere where you want to have the compiled-code inside a block, instead of the results of a compiled *and* executed block, as for "normal" block-functions. with normal block-functions the contents can be displayed multiple times, but the underlying template-code cannot be executed multiple times. things like "foreach", "if" etc. could be written as compiler-block- plugins. maybe programmers want to provide a special kind of "switch"-statement specifically desingned for their template-designers' purpose. compiler-blocks can handle that. okay, this example may be a little bit artificial. i don't have a better one for now. i just wrote them for fun, and did not use them to solve real-live-smarty- problems. :) André: the full patch is inside http://news.php.net/article.php?group=php.smarty.dev&article=519 regards messju > On Mon, 2003-01-27 at 09:14, André Rabold wrote: > > I remember a .diff file that enables compiler block functions which sounded > > very useful. Unfortunately I don't have it here anymore. > > > > > > "Monte Ohrt" <monte@ispi.net> schrieb im Newsbeitrag > > news:1043444918.9093.34.camel@lena.ispi.prv... > > > Can someone remind me what the issue was with block functions? I > > > remember it was compile-time vs. run-time, but I can't find it in the > > > archives. I found one where it says {literal} tags didn't work right in > > > a block function area, but it seems to work for me. > > > > > > Is it a matter of wanting to process the compiled template source > > > between the blocks as opposed to processing the runtime output? How > > > about examples of what the compile-time functionality is useful for? > > > > > > Thanks > > > Monte > > > > > > > -- > Monte Ohrt <monte@ispi.net> > > > -- > Smarty Development Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.dev (#637) next »