Transcript
Page 1: Building for multiple devices using a single language and framework

$ mojito start Building for multiple

devices

Diego Ferreiro ValFabian Frank

Page 2: Building for multiple devices using a single language and framework
Page 3: Building for multiple devices using a single language and framework

•MVC Framework for device-independent applications

•running on the client and server

•written 100% in JavaScript

http://developer.yahoo.com/cocktails/mojito/https://github.com/yahoo/mojito

Page 4: Building for multiple devices using a single language and framework
Page 5: Building for multiple devices using a single language and framework

Mojit

MojitProxyController

Model

View

Assets

YUI Module

Binders

Page 6: Building for multiple devices using a single language and framework

Where to run: Affinity

•Every piece defines where it runs

•It can run on the server, on the client or both

controller.server.js

controller.common.js

controller.client.js

Page 7: Building for multiple devices using a single language and framework

https://github.com/dferreiroval/trainingMojito

http://mojito-demo.herokuapp.com/http://fabianfrank.myweatherapp.jit.su/

Page 8: Building for multiple devices using a single language and framework
Page 9: Building for multiple devices using a single language and framework
Page 10: Building for multiple devices using a single language and framework

Context & Dimensions

view.iphone.js

binder.corp.js

controller.iphone.server.js

controller.server.js

Mojito Contex

t

Page 11: Building for multiple devices using a single language and framework

http://axis.yahoo.com/

Page 12: Building for multiple devices using a single language and framework
Page 13: Building for multiple devices using a single language and framework
Page 14: Building for multiple devices using a single language and framework
Page 15: Building for multiple devices using a single language and framework
Page 16: Building for multiple devices using a single language and framework
Page 17: Building for multiple devices using a single language and framework
Page 18: Building for multiple devices using a single language and framework
Page 19: Building for multiple devices using a single language and framework

Workshop

Page 20: Building for multiple devices using a single language and framework

Top Related