I have set up two handlebar helpers with the names 'outer' and 'inner'. In my template, I am using them as shown below:
{{#outer (inner data)}}
{{/outer}}
However, I am encountering an error in the console related to the inner helper, specifically saying "options.inverse is not a function".
The version of Handlebars I am working with is v3.0.3.
Could someone please guide me on where my mistake might be?
Here is the code snippet I am using:
Handlebars.registerhelper('outer',function(primary, options){
If(primary){
return options.fn(this);
}else{
return options.inverse(this);
}
});
Handlebars.registerhelper('inner',function(primary, options){
If(primary){
return options.fn(this);
}else{
return options.inverse(this);
}
});