summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/helpers.js
diff options
context:
space:
mode:
authorMartin Muñoz <im.mmun@gmail.com>2014-11-05 11:00:39 -0500
committerMartin Muñoz <im.mmun@gmail.com>2014-11-05 11:00:39 -0500
commita5d0491d57f53425ef155a3a803a881371bf07b1 (patch)
tree0683fbe2a32048e622459a1dca588fcdafdbfaf3 /lib/handlebars/compiler/helpers.js
parent12e3d210e8b3b22d19823e59bb789dc8768eb34b (diff)
downloadhandlebars.js-a5d0491d57f53425ef155a3a803a881371bf07b1.zip
handlebars.js-a5d0491d57f53425ef155a3a803a881371bf07b1.tar.gz
handlebars.js-a5d0491d57f53425ef155a3a803a881371bf07b1.tar.bz2
Remove RawBlockNode in favor of prepareRawBlock helper
Diffstat (limited to 'lib/handlebars/compiler/helpers.js')
-rw-r--r--lib/handlebars/compiler/helpers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js
index c9a35c2..02b307b 100644
--- a/lib/handlebars/compiler/helpers.js
+++ b/lib/handlebars/compiler/helpers.js
@@ -23,7 +23,9 @@ export function prepareRawBlock(openRawBlock, content, close, locInfo) {
throw new Exception(openRawBlock.sexpr.id.original + " doesn't match " + close, errorNode);
}
- return new this.RawBlockNode(openRawBlock.sexpr, content, locInfo);
+ var program = new this.ProgramNode([content], {}, locInfo);
+
+ return new this.BlockNode(openRawBlock.sexpr, program, undefined, undefined, locInfo);
}
export function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) {