diff --git a/docs.sgml b/docs.sgml
index 5c20daa9..eb1565b9 100644
--- a/docs.sgml
+++ b/docs.sgml
@@ -1982,14 +1982,20 @@ email: zaphod@slartibartfast.com<br>
{$smarty} reserved variable
- You can access reserved variables in Smarty via the special
- variable {$smarty}. You can access request variables such as get,
- post, cookies, server, env and session variables with the syntax in
- the following examples.
+ The reserved {$smarty} variable can be used to access several
+ special template variables. The full list of them follows.
The special variable {$smarty} was added to Smarty 1.4.4.
+
+
+ Request variables
+
+ The request variables such as get, post, cookies, server,
+ environment, and session variables can be accessed as demonstrated
+ in the examples below:
+ displaying request variables
@@ -2018,21 +2024,49 @@ email: zaphod@slartibartfast.com<br>
+
+
+
+ Current timestamp
- The current date can be displayed with {$smarty.now}. This is a unix
- timestamp of the current date/time.
+ The current timestamp can be accessed with {$smarty.now}. The
+ number reflects the number of seconds passed since the so-called
+ Epoch (January 1, 1970) and can be passed directly to
+ date_format modifier for display purposes.
-displaying current date
+using {$smarty.now}
-{* use the date_formate modifier to format the date *}
+{* use the date_format modifier to show current date and time *}
{$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
+
+
+
+ Output capture buffer
+
+ The output captured via {capture}..{/capture} construct can be
+ accessed using {$smarty} variable. See section on
+ capture for an example.
+
+
+
+
+ Loop properties
+
+ {$smarty} variable can be used to refer to 'section' and
+ 'foreach' loop properties. See docs for
+ section and
+ foreach.
+
+
+
+
Functions
@@ -3530,7 +3564,7 @@ $smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cel
*}
{foreach name=outer item=contact from=$contacts}
- {foreach key=key item=item from=$smarty.foreach.outer}
+ {foreach key=key item=item from=$contact}
{$key}: {$item}<br>
{/foreach}
{/foreach}