Re: [SMARTY-DEV] syntax error: expecting '=' after attribute name

From: Date: Wed, 10 Dec 2003 09:50:04 +0000
Subject: Re: [SMARTY-DEV] syntax error: expecting '=' after attribute name
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1957@lists.php.net to get a copy of this message
--- Mark Rogers <mark@quarella.co.uk> wrote: > To tackle the one specific point I was trying to solve, though: In > principle, at least, what would be the opinion on implementing {// > ... } as > a single smarty element comment, ie making the following two > equivalent > (aside from the former's problems with nesting): > {* {somefunc somevar=someval} *} > {// somefunc somevar=someval} hmm. At first glance that seems reasonable enough, though I don't think I favour it. It doesn't seem like a big gain to me compared to {* somefunc somevar=someval *} though I submit that it is somewhat a matter of taste. Of course, messju said it right: comments are not the best way to switch off code and by implementing "xx" as a compiler function, you can achieve your original intention. Greetings, xo boots __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/

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