Skip to content

Feature: Integrate the Nitro feature "patterns with children" into NitroNet #24

Description

@daniiiol

Nitro 2.x added a new feature "patterns with children". That feature allows us to render components on templates very clean.

Please add an integration to support this feature as well. :)

Because the example from the Nitro documentation is not very self-explanatory, see the following explanation/examples:

Generally this Nitro feature is about replacing the {{{children}}} element with arbitrary markup.
On the layout there will be a nested call of a pattern. Everything in between the pattern element get's inserted in the {{{children}}} element.

Example 1

Frontend implementation without the children element

handlebars file:

breadcrumb_hbs_1

layout file:

breadcrumb_layout_1

Frontend implementation with the children element

handlebars file:

breadcrumb_hbs_2

layout file:

breadcrumb_layout_2

Example 2

The pattern can also be used in a advanced way like the following example:
example

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions