update examples, give more detail

This commit is contained in:
mohrt
2005-02-01 17:42:59 +00:00
parent c6827dee8a
commit 6323a489a1

View File

@@ -13,14 +13,21 @@
<title>modifier example</title> <title>modifier example</title>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
{* Uppercase the title *} {* apply modifier to a variable *}
<h2>{$title|upper}</h2> {$title|upper}
{* modifier with parameters *}
{$title|truncate:40:"..."}
{* Truncate the topic to 40 characters use ... at the end *} {* apply modifier to a function parameter *}
Topic: {$topic|truncate:40:"..."} {html_table loop=$myvar|upper}
{* with parameters *}
{html_table loop=$myvar|truncate:40:"..."}
{* format a literal string *} {* apply modifier to literal string *}
{"now"|date_format:"%Y/%m/%d"} {"foobar"|upper}
{* using date_format to format the current date *}
{$smarty.now|date_format:"%Y/%m/%d"}
{* apply modifier to a custom function *} {* apply modifier to a custom function *}
{mailto|upper address="me@domain.dom"} {mailto|upper address="me@domain.dom"}