From 9e582fa0ebf167a0f2c9fa32cd43c214917e1760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristi=20Burc=C4=83?= Date: Fri, 28 Sep 2012 03:35:36 +0300 Subject: [PATCH] fix Block Helpers example --- README.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index ed0b022d..44727ed5 100644 --- a/README.markdown +++ b/README.markdown @@ -137,9 +137,9 @@ gets passed to the helper function. Handlebars.js also adds the ability to define block helpers. Block helpers are functions that can be called from anywhere in the template. Here's an example: ```js -var source = ""; -Handlebars.registerHelper('link', function(context, fn) { - return '' + fn(this) + ''; +var source = ""; +Handlebars.registerHelper('link', function(context, options) { + return '' + context.fn(this) + ''; }); var template = Handlebars.compile(source);