TeAmEr
TeAmEr

Reputation: 4773

custom function in smarty with closing tag

i know it is possible to write a custom function in smarty like {myunction x="1" y="2"}. but i wonder if theres any way to make a function that has an end {myfunc}...{/myfunc} and use the text in between as a parameter ?

is there any way to do so ?

Upvotes: 1

Views: 432

Answers (1)

Fabian Schmengler
Fabian Schmengler

Reputation: 24551

Yes. These kinds of functions are called blocks.

Upvotes: 3

Related Questions