From 6323a489a15e4bec6d6c5b0d92ed709e0d509cad Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 1 Feb 2005 17:42:59 +0000 Subject: [PATCH] update examples, give more detail --- docs/en/designers/language-modifiers.xml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/en/designers/language-modifiers.xml b/docs/en/designers/language-modifiers.xml index c5ffefda..ba1fe1f4 100644 --- a/docs/en/designers/language-modifiers.xml +++ b/docs/en/designers/language-modifiers.xml @@ -13,14 +13,21 @@ modifier example {$title|upper} +{* apply modifier to a variable *} +{$title|upper} +{* modifier with parameters *} +{$title|truncate:40:"..."} -{* Truncate the topic to 40 characters use ... at the end *} -Topic: {$topic|truncate:40:"..."} +{* apply modifier to a function parameter *} +{html_table loop=$myvar|upper} +{* with parameters *} +{html_table loop=$myvar|truncate:40:"..."} -{* format a literal string *} -{"now"|date_format:"%Y/%m/%d"} +{* apply modifier to literal string *} +{"foobar"|upper} + +{* using date_format to format the current date *} +{$smarty.now|date_format:"%Y/%m/%d"} {* apply modifier to a custom function *} {mailto|upper address="me@domain.dom"}