Ok, thanks to Louis I figured out how to get the module to be recognized. I was then able to mess around with it enough to get the view registered as a class to the module.
Module1.js:
/** @module Module1 */
define([... , 'views'], function(..., 'views'){
"usestrict";
/** @lends module:Module1 */
//Marionette Module definition:
return function(...marionette module params...){
...
}
}
and View.js:
define([...], function(...){
"usestrict";
/**
* @name module:Module1.Module1/Views/itemView
* @constructor
*/
var itemView = Marionette.ItemView.extend(
/** @lends module:Module1.Module1/Views/itemView.prototype */
{
...
};
/**
* @name module:Module1.Module1/Views/layoutView
* @constructor
*/
return Marionette.Layout.extend(
/** @lends module:Module1.Module1/Views/layoutView.prototype */
{
...
//do stuff with itemView
...
});
}
A couple of notes:
- In the @name for the views, the .Module1/ isn't really necessary, but it makes it easier to find in the doc webpage
- The itemView is technically private in this example since it doesn't get returned but I want to be able to find it in the docs