Re: eval & assign

From: Date: Mon, 25 Mar 2002 14:28:09 +0000
Subject: Re: eval & assign
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3324@lists.php.net to get a copy of this message
On Sun, 24 Mar 2002, Andreas Heintze wrote: > I have now solved this by converting all '{' and '}' to > '<ld<' and > '>rd>' inside the var attribute string of eval and then making a > customized eval function I call eval_icms that converts them back to '{' > and '}' and calls _compile_template(). It works but I would rather see > smarty to be able to have these chars '{' and '}' inside attribute > strings like this: > > {eval var='We found {record_count|numbertext:"no records":"one > record":"%d records"}'} > > Is it hard to change smarty to accept this? Yes. -Andrei What's hard, in hacking as in fiction, is not the writing, it's deciding what to write. -- Neal Stephenson

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