Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the render() documentation.

  • Loading branch information...
commit 4527651113a638bb4d7170cbfbe3c5e11f1e81ea 1 parent e1f816b
Marc Hughes authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 source/docs/views.md
View
6 source/docs/views.md
@@ -65,13 +65,13 @@ var container = Ember.ContainerView.create({
Before your views are turned into DOM elements, they first exist as a string representation. As views render, they turn
each of their child views into strings and concatenate them together.
-If you'd like to use something other than Handlebars, you can override a view's `render` method to return a custom
+If you'd like to use something other than Handlebars, you can override a view's `render` method to generate a custom
string of HTML.
```javascript
App.CoolView = Ember.View.create({
- render: function() {
- return "<b>This view is so cool!</b>";
+ render: function(buffer) {
+ buffer.push("<b>This view is so cool!</b>");
}
});
```
Please sign in to comment.
Something went wrong with that request. Please try again.