cloudfour / cloudfour/drizzle

Handlebars Partial blocks don't work for Patterns

Open
#87 12 comments 0 reactions 0 assignees View on GitHub
bug builder docs
Dominant language
HTML
Stars
662
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Hi there,
do [handlebars partial blocks](http://handlebarsjs.com/partials.html#partial-block) work only for the [styleguide templates](https://github.com/cloudfour/drizzle/tree/master/src/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`:

``` handlebars


{{>@partial-block}}

```

Somewhere else:

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

Expected result:

``` html


Lorem ipsum

```

Instead I get an error

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.