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 ?
Yes. These kinds of functions are called blocks.