Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2540 from rwjblue/add-render-block-deprecation
Browse files Browse the repository at this point in the history
Add `{{#render` block deprecation.
  • Loading branch information
rwjblue committed Apr 11, 2016
2 parents 05ff702 + 4875dc7 commit bd1d5d5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions source/deprecations/v2.x.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,29 @@ export default Ember.Helper.extend({
});
```

### Deprecations Added in 2.4

#### {{#render}} helper with block

The `{{render}}` helper was never intended to support a block form, but unfortunatley (mostly
due to various refactorings in 1.10 and 1.13) it started working in block form. Since this was
not properly engineered, there are a number of caveats (i.e. the `controller` and `target` values of
anything inside the block are incorrect) that prevent continued support.

Support the following forms will be removed after 2.4:

```hbs
{{#render 'foo'}}
<p>Stuff Here</p>
{{/render}}
```

```hbs
{{#render 'foo' someModel}}
<p>Stuff Here</p>
{{/render}}
```

### Deprecations Added in 2.6

#### Use Ember.String.htmlSafe over Ember.Handlebars.SafeString
Expand Down

0 comments on commit bd1d5d5

Please sign in to comment.