A method of a mojit instance ({mojit_instance}.{action}) that invokes a call to a function of a mojit controller
when an HTTP request is made on an associated routing path. For example, suppose the root path is associated with the
mojit instance and action hello.index, and the hello instance is of type HelloMojit. When an HTTP request
is made on the root path, the action index would invoke the index function of the HelloMojit controller.
A namespacing object attached directly to the Action Context object that provides additional functions. The Action Context
object is available in every controller function. See Mojito API Overview: Addons for more information.
The location where a resource is available. For example, the value for {affinity} in the file controller.{affinity}.js
could be server, client, or common, depending on where the resource is available. The affinity common means
that the resource is available in both the client and server. If both common and client are given, then the client
file is used on the client and the common file is used on the server. Likewise, if both common and server are given,
then the common file is used on the client and the server file is used on the server.
File resources that are required on the clients. These resources are primarily CSS but can also be JavaScript that is ancillary
to and not a core component of the Mojito application. See Mojito Developer Topics: Assets to
learn how to use assets in Mojito applications.
A directory of a Mojito application containing JavaScript files that use YUI modules added with YUI.add. These files aren’t
actually auto-loaded, but are merely automatically included if required by a YUI module.
Mojit code deployed to the browser that can allow event handlers to attach to the mojit DOM node, communicate with other mojits on
the page, and execute actions on the mojit that the binder is attached to. A mojit may have zero, one, or many binders within
the binders directory. See Mojito Binders for more information.
In Mojito, the controller is mojit code that can either do all of the work or delegate the work to models and/or views.
In the typical case, the mojit controller requests the model to retrieve data and then the controller will serve that
data to the views. See MVC: Controllers for more information.
The basic unit of composition and reuse in a Mojito application. It typically corresponds to a rectangular area of a page and
is constructed using JavaScript and the MVC.
The proxy object given to binders that allows them to interact with the mojit it represents as well as with other mojits on the page.
See the mojitProxy Object and the MojitProxy Class
for more information.
A Web framework with which applications are written entirely in JavaScript, using an MVC
approach and allowing for transportable code between client (browser) and server. The framework addresses the combined needs
of connected devices and desktops, including disconnected application usage.
Acronym for Model-View-Controller. A software architecture pattern used in software engineering. The pattern isolates “domain logic”
(the application logic for the user) from the user interface (input and presentation), permitting independent development, testing
and maintenance of each (separation of concerns). See Mojito Intro: MVC to learn how MVC is used in Mojito.
An evented I/O framework for the V8 JavaScript engine on Unix-like platforms that is intended for writing scalable network
programs such as Web servers. See nodejs.org for more information.
The package manager is for Node.js and can be used to install and publish code libraries and manage the dependencies among them.
See npmjs.org for more information.
An open standard that enables users to share information stored on one site with another site without giving out the user ID and password.
See the Yahoo! OAuth Quick Start Guide for more information.
The display element of Mojito that is served to a device. The view is rendered from the template and consists of HTML and CSS.
See MVC: Views for more information.
Also referred to as partials, partial views, and partial collection. View partials are collections that can be iterated through to create a document fragment.
Using a view partial, you can create that document fragment instead of iterating through the collection in the view.
Template files that are rendered into HTML and served to a device. These templates can contain expressions (Handlebars) or tags (Mustache) that
are replaced with values by a view rendering engine.