The code example in the documentation for `capture` is wrong. Current example is: ``` {capture var=templateVariable} {if $foo} {$bar} {else} {$baz} {/if} {/capture} ``` Correct must be: ``` {capture assign=templateVariable} {if $foo} {$bar} {else} {$baz} {/if} {/capture} ``` `capture var` does not work in the template engine.