From 131c6b78fd3d69e364450afbffba24ffeb12a3b4 Mon Sep 17 00:00:00 2001 From: Simon Oberhammer Date: Tue, 30 Jun 2015 09:14:09 +0200 Subject: [PATCH] doc fix --- docs/custom-template-tags.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/custom-template-tags.md b/docs/custom-template-tags.md index 9c8b0b3..55bf510 100644 --- a/docs/custom-template-tags.md +++ b/docs/custom-template-tags.md @@ -315,7 +315,8 @@ for example: var {Variable} = require("reinhardt/variable"); var FormatTimeNode = function(dateToBeFormatted, formatString) { - this.dateToBeFormatted = new Variable(dateToBeFormatted, formatString) + this.dateToBeFormatted = new Variable(dateToBeFormatted); + this.formatString = formatString; return this; } FormatTimeNode.prototype.render = function(context) {