ember-learn / ember-learn/ember-cli-addon-docs

directory nested angle bracket component breaks the template compiler

Open
#391 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
172
Forks
142
PR merge metrics
No merged PRs in 30d

Description

Code:

```
{{#docs-demo as |demo|}}
{{#demo.example name='important'}}
Foo
{{/demo.example}}

{{demo.snippet 'important'}}
{{/docs-demo}}
```

Error:
```
Template Compiler Error (broccoli-persistent-filter:TemplateCompiler) in dummy/templates/docs/components/buttons.hbs

Closing tag `Button::Important` (on line 6) without an open tag.
```
---------

This bug does not occur if the component is self closing:
```
{{#docs-demo as |demo|}}
{{#demo.example name='important'}}

{{/demo.example}}

{{demo.snippet 'important'}}
{{/docs-demo}}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.