In association with heise online

03 April 2012, 11:52

Yahoo open sources MVC framework Mojito

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

Mojito logo

Yahoo has announced that it is open sourcing Mojito, a MVC application framework built on YUI3 which "enables agile development of web applications" by allowing developers to write JavaScript which can run on the client, server or both. Mojito's framework runs on Node.js server-side or in the browser.

Applications can be configured to run on the server or the browser, but if the browser is not able to run JavaScript, it automatically falls back to running on the server. This, says Yahoo, allows developers write one code base and lets the framework decide where the code will run. Mojito also supports creating different views for devices based on their HTTP user-agent header, allowing for device specific versions of the application.

Building on YUI3 as a toolkit also gives allows applications to be monolingual or multilingual if the Yahoo internationalisation utility and resource bundles are used. Data access is made portable between server and browser by making use of YQL (Yahoo Query Language).

Mojito is an implementation of "Cocktails" an on-line/off-line, multi-device, hosted application platform which was announced in 2011. Cocktails Senior Product Manager Ren Waldura says that the framework doesn't do everything which Yahoo envisaged it should be capable of, such as managing changing runtime contexts or mitigating spikey traffic, but it is because of these challenges that it decided to open source the framework. Yahoo already use the framework for applications such as Livestand and Fantasy Football Premier League.

The Mojito framework is hosted on GitHub and made available under a 3-clause BSD licence.


Print Version | Send by email | Permalink:

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit