Today’s tutorial about the Mojito framework is incredible to me because Javascript appears on both sides of the web ledger as a client language like we’ve been used to (hope this blog has left that little chink of possibility open that Javascript can have another mode of use), plus it is the server language as well, in the case of Mojito. Curiouser and curiouser!
This dual mode of use of Javascript will appeal to lots of developers who are getting better and better with this all pervasive language, but for myself, think I’ll always want the peas over there and the potatoes over here … “PHP spuds and Javascript greens”.
This tutorial does a Mojito hello world scenario and the compactness of the environment, and its elemental simplicity (for the developer) make you feel it is something you should explore more, and really hope to do this myself into the future. Let’s see, below, what the wonderful Wikipedia contributors have written about Mojito, which can be seen at the Yahoo Developer Network webpage. And forgot to point out that Mojito follows those excellent MVC web architecture principles where model is separated from view is separated from controller, and the coding can, perhaps, be compartmentalized in this fashion as well. Mojito promises device-independent code if used well.
Mojito is a model-view-controller (MVC) application framework built on YUI 3 that enables agile development of Web applications. Mojito allows developers to use a combination of configuration and an MVC architecture to create applications. Because client and server components are both written in JavaScript, Mojito can run on the client (browser) or the server (Node.js).
It has built-in support for internationalization, testing, and building documentation.[1]
Downloadable HTML and Javascript programming source code for MVC respectively are model.server.js and index.hb.html and controller.server.js as well as server.js
Mojito’s install involved the installation of node.js … a “platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications” to quote the website. You may have heard of node.js as a platform of growing importance.
If this was interesting you may be interested in this too.