Re: [PHP Template] dynamic blocks

From: Date: Wed, 16 Feb 2000 22:20:19 +0000
Subject: Re: [PHP Template] dynamic blocks
References: 1 2 3  Groups: php.template 
Request: Send a blank email to php-template+get-91@lists.php.net to get a copy of this message
So they are already going to see the variable names when viewing static html. {foo}. What is so wrong with also seeing the dynamic declarations? The only viable alternative I see is angle brackets, but having used such a system, I can say that it gets *very* confusing, when you start having things like: <section: link> <a href="<link>"><font face="<fontface>" size="<fontsize>" color="<fontcolor>"><linktext></font></a> </section: link> compare that to: {section: link} <a href="{link}"><font face="{fontface}" size="{fontsize}" color="{fontcolor}">{linktext}</font></a> {/section: link} I think that whatever we decide, it should be consistent between variables, sections, and any other tokens we decide to use, such as ifs. Note, I actually prefer "{{" to "{" because it means that people won't need to escape single "{", which are a more common occurrence. -dan Andrei Zmievski wrote: > On Wed, 16 Feb 2000, Ludovico Magnocavallo wrote: > > Andrei, my point is that designers will work on BARE templates, and open > > them up in netscape or ie to test layout, etc. indipendently from any > > engine or script. At least, that's what our designers do, they edit the > > templates indipendently from me, or other developers, and they edit them > > as STATIC HTML files. > > > > So the engine will NOT be there to process templates for them, and they > > WILL see the dynblocks declarations on the page, unless the developer > > masks them inside HTML comments. > > I see what you're trying to say. What does everyone else think? > > -Andrei > > 'Any given program, when running correctly, is obsolete.' > - First Law of Computer Programming

Attachment: [text/x-vcard] Card for Dan Libby danda.vcf
« previous php.template (#91) next »