Why should I using CAPTURE in smarty?

Hello!
I have a question…

I saw in opt-in module solution in tpl file with {capture}.

What is the difference in use codes in tpl files:

[{capture name=“test” assign=“test”}]
_ This is test._
[{/capture}]
[{$smarty.block.parent}]
[{$smarty.capture.test}]

and this:
[{$smarty.block.parent}]
This is test.

???

there is no difference for me, but you might ask module author if he had special intentions when using capture

1 Like