Re: backtic syntax changed
| From: | Tom Sommer | Date: | Sun, 06 Apr 2003 21:13:33 +0000 |
| Subject: | Re: backtic syntax changed | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1104@lists.php.net to get a copy of this message | ||
On 04 Apr 2003 17:22:07 -0600, Monte Ohrt wrote:
> backtic syntax was changed to more closely reflect other language
> escapement syntax. Basically, the entire var is enclosed in the
> backtics, including the dollar sign.
I got an idea to extend Smarty by using backtrics...
if a string contains
$* then it should automatically be treated like a
smarty assigned variable
like if I got a config/smarty var that says:
var = "this is a test, see my var $var here"
then, when used, $var will be replaced with it's assigned smarty-value
sort of like an eval that requires vars to be surrounded by backtrics and
only works on vars
perhaps this behavior could be toggled with
$smarty->eval_backtrics = true;
or something?
--
Tom Sommer, Denmark
www.tsn.dk - www.dreamcoder.dk