Closed rhogan73 closed 9 years ago
I am also seeing the same or similar issue. Adding the following code in the recursiveVarSearch
function right at the beginning of the _(statements).forEach
loop seems to fix the issue.
var searchParamsForSexpr = function (params) {
params.forEach(function (param) {
if (param.type === 'sexpr' && param.isHelper === true) {
helpersres.push(param.id.string);
if (param.params) {
searchParamsForSexpr(param.params);
}
}
});
}
if (statement.params) {
searchParamsForSexpr(statement.params);
}
It appears that when using a nested helper the code is falling back to handlebars instead of hbs.
<option value="omni" {{#if (toBool type '==' 'omni')}}selected{{/if}}>Omnivore</option>
The helper is defined correctly because if I use the helper by itself, it registers correctly and no errors appear.