diff --git a/QUICKSTART b/QUICKSTART index 807352eb..f14db59f 100644 --- a/QUICKSTART +++ b/QUICKSTART @@ -143,17 +143,10 @@ require("Smarty.class.php"); $smarty = new Smarty; $smarty->assign("Name","Ned"); $smarty->assign(array( -<<<<<<< QUICKSTART - "FirstName" => "Fred", - "LastName" => "Flanders", - "Address" => "Springfield" - )); -======= "FirstName" => "Ned", "LastName" => "Flanders", "Address" => "Springfield" )); ->>>>>>> 1.2 $zipcode = "55555"; $smarty->assign("Zipcode",$zipcode); $smarty->display("./templates/index.tpl"); @@ -194,18 +187,6 @@ Example: --------- templates/index.tpl -------- {include file="header.tpl" title="Home Page"} -<<<<<<< QUICKSTART - {if $Name eq ""} - Hello, Noname!
- {elseif $Name eq "Fred"} - Hello, Frederick!
- {else} - Hello, {$Name}
- {/if} - - {$FirstName}, {$LastName}
- {$Address}, {$Zipcode} -======= {if $Name eq ""} Hello, Noname!
{elseif $Name eq "Ned"} @@ -216,7 +197,6 @@ Example: {$FirstName}, {$LastName}
{$Address}, {$Zipcode} ->>>>>>> 1.2 {include file="footer.tpl"} @@ -271,7 +251,7 @@ $smarty->assign("ContactNames",array( array("email","home","fax") )); $smarty->assign("ContactVals",array( - array("fred@simpsons.com","555-666-7777","555-444-3333"), + array("ned@simpsons.com","555-666-7777","555-444-3333"), array("bart@simpsons.com","555-111-2222"), array("monty@simpsons.com","555-888-9999","555-234-5678"), )); diff --git a/doc.sgm b/doc.sgm index 52ba3098..1afe5c1c 100644 --- a/doc.sgm +++ b/doc.sgm @@ -556,7 +556,7 @@ Your last login was on January 11th, 2001. values don't have to be enclosed in quotes, but it is recommended for literal strings. If not quoted, you may use a syntax that Smarty may confuse with another function, such as a boolean value. Variables may - also be used, and should not be in parenthesis. + also be used, and should not be in quotes. Template example of function attribute syntax