Skip to content

Handlebars Partial blocks don't work for Patterns #87

@giuseppeg

Description

@giuseppeg

Hi there,
do handlebars partial blocks work only for the styleguide templates or can I use them in Pattern templates as well?

I could use embed but partial-blocks are neat.

Here's what I am trying to do:

In patterns/components/MyComponent/index.hbs:

<div class="MyComponent">
   {{>@partial-block}}
</div>

Somewhere else:

{{#> patterns.components.MyComponent.index }}
   Lorem ipsum
{{/patterns.components.MyComponent.index }}

Expected result:

<div class="MyComponent">
   Lorem ipsum
</div>

Instead I get an error

Error: The partial @partial-block could not be found

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