The core purpose of a view is to manage the contents, events, and behavior or a single DOM element.
It doesn't matter if your "view" is an instance of
ampersand-view or not. Any object can be a view if it follows a few rules.
Following these rules ensure that that your view plays nicely with other views.
The rules are:
optionsobject as the first argument to their constructor.
elproperty, that is the dom element that the view manages.
elproperty, it should be used as the view's
rendermethod that creates, replaces, or fills in the
removemethod that tears down the view, removes any event handlers, and ideally removes
elfrom it's parent (if that's a reasonable thing to do).
Here is an absolutely bare-minimum
view. Please see the comments.