From 469975c23712fb528e2daad3c6b41538f5c4dca5 Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Mon, 2 Nov 2009 21:19:57 +0000 Subject: [PATCH] remove tabs --- README | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README b/README index 2028addf..36901bee 100644 --- a/README +++ b/README @@ -63,10 +63,10 @@ is still supported for BC. Examples: {$x+$y} will output the sum of x and y. -{$foo = strlen($bar)} function in assignment -{assign var=foo value= $x+$y} in attributs -{$foo = myfunct( ($x+$y)*3 )} as function parameter -{$foo[$x+3]} as array index +{$foo = strlen($bar)} function in assignment +{assign var=foo value= $x+$y} in attributs +{$foo = myfunct( ($x+$y)*3 )} as function parameter +{$foo[$x+3]} as array index Smarty tags can be used as values within other tags. Example: {$foo={counter}+3} @@ -106,10 +106,10 @@ Examples: The original "dot" notation stays, and with improvements. Examples: -{$foo.a.b.c} => $foo['a']['b']['c'] -{$foo.a.$b.c} => $foo['a'][$b]['c'] with variable index -{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] with expression as index -{$foo.a.{$b.c}} => $foo['a'][$b['c']] with nested index +{$foo.a.b.c} => $foo['a']['b']['c'] +{$foo.a.$b.c} => $foo['a'][$b]['c'] with variable index +{$foo.a.{$b+4}.c} => $foo['a'][$b+4]['c'] with expression as index +{$foo.a.{$b.c}} => $foo['a'][$b['c']] with nested index note that { and } are used to address ambiguties when nesting the dot syntax.