Skip to content

Dynamic snippet check for static snippet parent should be implemented in Runtime #134

@hrach

Description

@hrach

Currently, if a dynamic snippet is used without {snippet} or {snippetArea} parent, an exception is thrown. However, such behavior disables using dynamic snippets through define blocks, etc.

{define row}
  <div n:snippet="row-{$id}">{$id}</div>
{/define}

{snippet}
  {include row id => 1}
{/snippet}

This check could be moved into Runtime or more complex check could be implemented, but this could be pretty difficult.

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