e01.org

Mojito (framework)

Mojito (framework) is an encyclopedia record, sourced from en.wikipedia.org, last updated 2025-09-17, source revision https://en.wikipedia.org/w/index.php?oldid=1311856385. Mojito is an environment agnostic, Model-View-Controller (MVC) web application framework. It was designed by Yahoo. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

Mojito is an environment agnostic, Model-View-Controller (MVC) web application framework. It was designed by Yahoo. ==Architecture== In Mojito, both server and "client" side scripting is done in JavaScript, allowing it to run on both client and server thereby breaking the "front-end back-end barrier." It has both client and server runtimes. ==Mojits== Mojits are the modules of a Mojito application. An application consists of one or more mojits. A mojit encompasses a Model, Views and a Controller defined by JSON configuration files. It includes a View factory where views are created according to the model and a View cache that holds frequently requested views to aid performance. ===Application Directory Structure=== Directory structure of a Mojito application with one mojit: [mojito_app]/ |-- application.json |-- assets/ | `-- favicon.icon |-- yui_modules/ | `-- *.{affinity}.js |-- index.js |-- mojits/ | `-- [mojit_name | |-- assets/ | |-- yui_modules/ | | `-- *.{affinity}.js | |-- binders/ | | `-- {view_name}.js | |-- controller.{affinity}.js | |-- defaults.json | |-- definition.json | |-- lang/ | | `-- {mojit_name}_{lang}.js | |-- models/ | | `-- {model_name}.{affinity}.js | |-- tests/ | | |-- yui_modules/ | | | `-- {module_name}.{affinity}-tests.js | | |-- controller.{affinity}-tests.js | | `-- models/ | | `-- {model_name}.{affinity}-tests.js | `-- views/ | |-- {view_name}.{view_engine}.html | `-- {view_name}.{device}.{view_engine}.html |-- package.json |-- routes.json (deprecated) |-- server.js ==References==

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Mojito (framework)". 1758088548. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1311856385

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·