{"id":6208,"date":"2014-02-03T05:03:52","date_gmt":"2014-02-02T18:03:52","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=6208"},"modified":"2016-04-17T11:43:46","modified_gmt":"2016-04-17T01:43:46","slug":"mojito-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/mojito-primer-tutorial\/","title":{"rendered":"Mojito Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/JavaScript\/Mojito\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Mojito Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/JavaScript\/Mojito\/Mojito_Primer-172of.jpg\" title=\"Mojito Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Mojito Primer Tutorial<\/p><\/div>\n<p>Today&#8217;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&#8217;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.  <a  target=_blank title='Alice in Wonderland' href='http:\/\/www.youtube.com\/watch?v=truHqdF50Hg'>Curiouser and curiouser<\/a>!<\/p>\n<p>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&#8217;ll always want the peas over there and the potatoes over here &#8230; &#8220;PHP spuds and Javascript greens&#8221;.<\/p>\n<p>This <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/JavaScript\/Mojito\/\" title='click picture'>tutorial<\/a> 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&#8217;s see, <a target=_blank title='Wikipedia information regarding Mojito framework ... thanks' href='http:\/\/en.wikipedia.org\/wiki\/Mojito_%28framework%29'>below<\/a>, what the wonderful Wikipedia contributors have written about Mojito, which can be seen at the <a target=_blank title='Yahoo Developer Network' href='http:\/\/developer.yahoo.com\/'>Yahoo Developer Network<\/a> webpage.   And forgot to point out that Mojito follows those excellent <a target=_blank title='MVC' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=MVC'>MVC<\/a> 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.<\/p>\n<blockquote>\n<p>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).<\/p>\n<p>It has built-in support for internationalization, testing, and building documentation.[1]<\/p>\n<\/blockquote>\n<p>Downloadable HTML and Javascript programming source code for MVC respectively are <a target=_blank title='model.server.js' href='http:\/\/www.rjmprogramming.com.au\/JavaScript\/Mojito\/model.server.js_GETME'>model.server.js<\/a> and <a target=_blank title='index.hb.html' href='http:\/\/www.rjmprogramming.com.au\/JavaScript\/Mojito\/index.hb.html_GETME'>index.hb.html<\/a> and <a target=_blank title='controller.server.js' href='http:\/\/www.rjmprogramming.com.au\/JavaScript\/Mojito\/controller.server.js_GETME'>controller.server.js<\/a> as well as <a target=_blank title='server.js' href='http:\/\/www.rjmprogramming.com.au\/JavaScript\/Mojito\/server.js_GETME'>server.js<\/a><\/p>\n<p>Mojito&#8217;s install involved the installation of <a target=_blank href='http:\/\/nodejs.org\/' title='node.js'>node.js<\/a> &#8230; a &#8220;platform built on Chrome&#8217;s JavaScript runtime for easily building fast, scalable network applications&#8221; to quote the website.   You may have heard of node.js as a platform of growing importance.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d6208' onclick='var dv=document.getElementById(\"d6208\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=MVC\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d6208' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;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&#8217;ve been used to (hope this blog has left that little chink of possibility open &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/mojito-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[462,558,652,664,805,824,1859,840,997,1319,1411,1487,1489],"class_list":["post-6208","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-framework","tag-hello-world","tag-javascript","tag-json","tag-mojito","tag-mvc","tag-node","tag-node-js","tag-programming","tag-tutorial","tag-web-server","tag-yahoo","tag-yahoo-developer-network"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/6208"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=6208"}],"version-history":[{"count":1,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/6208\/revisions"}],"predecessor-version":[{"id":21364,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/6208\/revisions\/21364"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=6208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=6208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=6208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}