diff doc/xml-templates.txt @ 395:55cf81951686 experimental-inline

inline branch: Merged [439:479/trunk].
author cmlenz
date Thu, 28 Dec 2006 18:17:10 +0000
parents 0fc758cb3a02
children ec05506d1bda 0742f421caba
line wrap: on
line diff
--- a/doc/xml-templates.txt
+++ b/doc/xml-templates.txt
@@ -74,9 +74,10 @@
 Expressions need to prefixed with a dollar sign (``$``) and usually enclosed in
 curly braces (``{…}``).
 
-If the expression starts with a letter and contains only letters and digits,
-the curly braces may be omitted. In all other cases, the braces are required so
-that the template processors knows where the expression ends::
+If the expression starts with a letter and contains only letters, digits, dots,
+and underscores, the curly braces may be omitted. In all other cases, the
+braces are required so that the template processor knows where the expression
+ends::
 
   >>> from genshi.template import MarkupTemplate
   >>> tmpl = MarkupTemplate('<em>${items[0].capitalize()} item</em>')
@@ -123,7 +124,7 @@
 template is rendered in a number of ways: Genshi provides directives for
 conditionals and looping, among others.
 
-To use directives in a template, the namespace should be declared, which is
+To use directives in a template, the namespace must be declared, which is
 usually done on the root element::
 
   <html xmlns="http://www.w3.org/1999/xhtml"
@@ -302,14 +303,14 @@
     </p>
   </div>
 
-If a macro doesn't require parameters, it can be defined as well as called
-without the parenthesis. For example::
+If a macro doesn't require parameters, it can be defined without the 
+parenthesis. For example::
 
   <div>
     <p py:def="greeting" class="greeting">
       Hello, world!
     </p>
-    ${greeting}
+    ${greeting()}
   </div>
 
 The above would be rendered to::
Copyright (C) 2012-2017 Edgewall Software