Quick fix for string-templates, was being a bit too fuzzy in its lookup of possible helper names.
This commit is contained in:
parent
e283dc0bb1
commit
32b0816ecb
|
@ -91,7 +91,9 @@ module.exports.processStringSync = (string, context) => {
|
||||||
}
|
}
|
||||||
string = processors.preprocess(string)
|
string = processors.preprocess(string)
|
||||||
// this does not throw an error when template can't be fulfilled, have to try correct beforehand
|
// this does not throw an error when template can't be fulfilled, have to try correct beforehand
|
||||||
const template = hbsInstance.compile(string)
|
const template = hbsInstance.compile(string, {
|
||||||
|
strict: false,
|
||||||
|
})
|
||||||
return processors.postprocess(template(clonedContext))
|
return processors.postprocess(template(clonedContext))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ module.exports.processors = [
|
||||||
return statement
|
return statement
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (HelperNames().some(option => possibleHelper.includes(option))) {
|
if (HelperNames().some(option => option.includes(possibleHelper))) {
|
||||||
insideStatement = `(${insideStatement})`
|
insideStatement = `(${insideStatement})`
|
||||||
}
|
}
|
||||||
return `{{ all ${insideStatement} }}`
|
return `{{ all ${insideStatement} }}`
|
||||||
|
|
Loading…
Reference in New Issue