Mojito (framework)
Mojito is an environment agnostic, Model-View-Controller (MVC) web application framework.[src] It was designed by Yahoo.[src]
Mojito is an environment agnostic, Model-View-Controller (MVC) web application framework.[src] It was designed by Yahoo.[src] ==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.[src] ==Mojits== Mojits are the modules of a Mojito application.[src] An application consists of one or more mojits.[src] A mojit encompasses a Model, Views and a Controller defined by JSON configuration files.[src] 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.[src] ===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==[src]
10 sentences · 10 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Mojito (framework)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/mojito-framework. Accessed 26 November 2026.
Chicago
"Mojito (framework)." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/mojito-framework.
APA
encyclopegia.org. (2025). Mojito (framework). Retrieved November 26, 2026, from https://encyclopegia.org/wiki/mojito-framework
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON