forked from umakantp/jsmart
-
Notifications
You must be signed in to change notification settings - Fork 2
call
pfaciana edited this page Sep 25, 2019
·
1 revision
{call} is used to call a template function defined by the {function} tag just like a plugin function.
| Attribute | Required | Description |
|---|---|---|
| name | Yes | The name of the template function |
| assign | No | The name of the variable that the output of called template function will be assigned to |
{function hello}
Hello {$to}!
{/function}
{$fname = 'hello'}
{call $fname to='world'}
output:
Hello world!