From 4527651113a638bb4d7170cbfbe3c5e11f1e81ea Mon Sep 17 00:00:00 2001 From: Marc Hughes Date: Sat, 28 Jan 2012 22:11:09 -0500 Subject: [PATCH] Fixed the render() documentation. --- source/docs/views.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/docs/views.md b/source/docs/views.md index c808b13538..bc59a6ed6f 100644 --- a/source/docs/views.md +++ b/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 "This view is so cool!"; + render: function(buffer) { + buffer.push("This view is so cool!"); } }); ```