]> git.andy128k.dev Git - ipf.git/commitdiff
strict syntax
authorAndrey Kutejko <andy128k@gmail.com>
Sun, 16 Jun 2013 20:03:34 +0000 (23:03 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Sun, 16 Jun 2013 20:03:34 +0000 (23:03 +0300)
doc/template.org

index bf9b4645a87444c74fae920f619968ae88a742d1..4ce9d2817c93f1bf04a1838433434cd4eba74742 100644 (file)
@@ -9,7 +9,7 @@
 ** Tags
 
 *** print
-    Syntax: ={<expr>[modifiers]}=
+    Syntax: ={<expr>[modifiers]?}=
 
     Outputs expression.
 
@@ -74,7 +74,7 @@
 ** Predefined custom tags
 
 *** url
-    Syntax: ={url '<view-name>'[, array(<arg>, ...)]}=
+    Syntax: ={url '<view-name>'[, array([<arg>]*)]?}=
 
     Examples: ={url 'Content_View_Index'}=, ={url 'Catalog_View_Products', array($product->slug)}=, ={url 'News_View_Item', array($item->date, $item->slug)}=
 
@@ -88,9 +88,9 @@
 ** Modifiers
 
    Modifier is a transformation applied to a printed value.
-   Some modifiers have one or more parameters.
+   Some modifiers have one or more parameters. All parameters have default values and can be omitted.
 
-   ={<expr> [|<modifier>[:<params>]]*}=
+   ={<expr> [|<modifier>[:<params>]?]*}=
 
    Where =<params>= is a comma-separated list of parameters.