diff options
author | Eric Nielsen <eric@amalgamar.com.br> | 2015-07-15 14:40:48 -0300 |
---|---|---|
committer | Eric Nielsen <eric@amalgamar.com.br> | 2015-07-15 14:45:43 -0300 |
commit | 868ef4b309720f77586834e7a73e4b341ed4737a (patch) | |
tree | 839a5272948bdcf81165f34aca4a32ae0ab28448 /lib/handlebars/compiler/helpers.js | |
parent | 8c09b3c896148ce38efba3099d0271bebe004b0a (diff) | |
download | handlebars.js-868ef4b309720f77586834e7a73e4b341ed4737a.zip handlebars.js-868ef4b309720f77586834e7a73e4b341ed4737a.tar.gz handlebars.js-868ef4b309720f77586834e7a73e4b341ed4737a.tar.bz2 |
#1056 Fixed grammar for nested raw blocks
Diffstat (limited to 'lib/handlebars/compiler/helpers.js')
-rw-r--r-- | lib/handlebars/compiler/helpers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/helpers.js b/lib/handlebars/compiler/helpers.js index e3eb786..1c8ab0d 100644 --- a/lib/handlebars/compiler/helpers.js +++ b/lib/handlebars/compiler/helpers.js @@ -70,7 +70,7 @@ export function prepareMustache(path, params, hash, open, strip, locInfo) { return new this.MustacheStatement(path, params, hash, escaped, strip, this.locInfo(locInfo)); } -export function prepareRawBlock(openRawBlock, content, close, locInfo) { +export function prepareRawBlock(openRawBlock, contents, close, locInfo) { if (openRawBlock.path.original !== close) { let errorNode = {loc: openRawBlock.path.loc}; @@ -78,7 +78,7 @@ export function prepareRawBlock(openRawBlock, content, close, locInfo) { } locInfo = this.locInfo(locInfo); - let program = new this.Program([content], null, {}, locInfo); + let program = new this.Program(contents, null, {}, locInfo); return new this.BlockStatement( openRawBlock.path, openRawBlock.params, openRawBlock.hash, |