From: Andrey Kutejko Date: Sun, 16 Jun 2013 20:03:34 +0000 (+0300) Subject: strict syntax X-Git-Tag: 0.5~228 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=0c1f8a76348d9cffb4ed3513f7df8ad3f835c142;p=ipf.git strict syntax --- diff --git a/doc/template.org b/doc/template.org index bf9b464..4ce9d28 100644 --- a/doc/template.org +++ b/doc/template.org @@ -9,7 +9,7 @@ ** Tags *** print - Syntax: ={[modifiers]}= + Syntax: ={[modifiers]?}= Outputs expression. @@ -74,7 +74,7 @@ ** Predefined custom tags *** url - Syntax: ={url ''[, array(, ...)]}= + Syntax: ={url ''[, array([]*)]?}= 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. - ={ [|[:]]*}= + ={ [|[:]?]*}= Where == is a comma-separated list of parameters.