Skip to content

Template-Plugin "capture" is wrong in documentation #526

@Hanashi

Description

@Hanashi

The code example in the documentation for capture is wrong.

Current example is:

{capture var=templateVariable}
    {if $foo}
        <p>{$bar}</p>
    {else}
        <small>{$baz}</small>
    {/if}
{/capture}

Correct must be:

{capture assign=templateVariable}
    {if $foo}
        <p>{$bar}</p>
    {else}
        <small>{$baz}</small>
    {/if}
{/capture}

capture var does not work in the template engine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions