Using regions helps to manage views in a very elegant way. But that may not be enough for some applications, which can have dozens of regions that need to be added and removed during the lifetime of the application. To accomplish this management, we can take advantage of the
RegionManager object of Marionette, which will serve as a container for regions.
Having your regions in this container can help us to accomplish almost the same actions, which we could accomplish with a
Backbone.Collection object, with the help of underscore methods such as
The following syntax can help us to declare
var regionManager = new Marionette.RegionManager(); ...