Im pretty new to Marionette.js / Backbone.js but I have a lot of experience with Angular and most recently React.
I have a Marionette app and in that app we have a special form control that creates tags and makes suggestion, something like this http://sliptree.github.io/bootstrap-tokenfield/
I have this exact same control in various parts of the app and hence the problem and the question being asked:
How can I abstract that component and re use it across the app? it has a markup template, with some minimal template logic, it uses some templateHelpers and the jquery plugin that supports it needs to be instantiated onShow.
In a React.js app I will do something pretty simple as this:
<form>
...
<mySpecialControl {...someProps}/>
</form>
And in the def of mySpecialControl I will encapsulate all the logic.
Is there any way of accomplishing something analogous in a Marionette / Backbone app?