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

From: Date: Wed, 10 Dec 2003 12:20:37 +0000
Subject: Re: [SMARTY-DEV] syntax error: expecting '=' after attribute name
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1959@lists.php.net to get a copy of this message
From: "Mark Rogers" <mark@quarella.co.uk> > It's useful for much the same reason end of line comments are in most > programming langauges - there's never really a situation where block > comments cannot be used instead, but sometime's its simpler. > > If I'm trying to test the effect of a single Smarty element, for example, > it's quick to change {tag to {// tag, hit save and refresh the browser to > see the effect. Changing both { to {* and } to *} means a lot more moving > around the code and is therefore considerably slower, particularly when you > have a lot of length elements to move around. I do thing like this: {**}<pre style="text-align:left">{$test|@var_export:true}</pre>{**} which I can turn on or off by adding a space before the first }, i.e. it is commented all across the line with: {** }<pre...

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