You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.
@yangpro in this case your some-helper is creating a view, so layout-element is no longer part of the LayoutView, it's part of a child of the LayoutView. You probably want to use plain old registerHelper in this case.
Handlebars.registerViewHelper( 'some-helper', function( helperView ) {
console.log( helperView );
} );
var view = new Thorax.LayoutView( {
template: Handlebars.compile( '{{#some-helper}} {{layout-element}} {{/some-helper}}' )
} );
view.appendTo( document.body );
... result...
Uncaught Error: Error "layout-element-helper". For more information visit http://thoraxjs.org/error-codes.html#layout-element-helper
help please...
The text was updated successfully, but these errors were encountered: