{"_id":"rondo","_rev":"7-8d797708fa6a021aadef7fe79f675042","name":"rondo","description":"DOM library and application suite","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"rondo","description":"DOM library and application suite","author":{"name":"Christopher Jeffrey"},"version":"0.0.1","repository":{"type":"git","url":"git://github.com/chjj/rondo.git"},"keywords":["dom","app"],"dependencies":{"uglify-js":"*","zest-js":"*"},"_npmJsonOpts":{"file":"/home/cjj/.npm/rondo/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"rondo@0.0.1","devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"6d4ca3790114aa78d2d3e79fad1faed4346dfc62","tarball":"https://registry.npmjs.org/rondo/-/rondo-0.0.1.tgz","integrity":"sha512-eWfJzCbchAnTJjy2jJAJFfIfc8YzAAjdFaNaKcevWxegwFn+0C71fyHauGVoKLj5X9lsd2b0xMAvV7jWGQX86Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKef0CBqsN2MNN76MVeipFZ1At1h4FE/vl8SbUJLqp9AIhANbvzwdUer0nf+BtOfPm19W+oTMgXr73lYQi2Z4B9Hu0"}]},"scripts":{},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}]},"0.0.2":{"name":"rondo","description":"DOM library and application suite","author":{"name":"Christopher Jeffrey"},"version":"0.0.2","repository":{"type":"git","url":"git://github.com/chjj/rondo.git"},"keywords":["dom","app"],"dependencies":{"uglify-js":"*","zest.js":"*"},"_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"_id":"rondo@0.0.2","devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.10","_defaultsLoaded":true,"dist":{"shasum":"b9241f194ab948a4bb8edcfb41c34ed83e6f5b81","tarball":"https://registry.npmjs.org/rondo/-/rondo-0.0.2.tgz","integrity":"sha512-HjXyxSApJUsk7V34cFWli199FaGmNEuYlQfydAlQRJZLaJoyGLtD4OBv1HwBHSrnGseQuTadDmjGpb+0e8UMmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjkYmsUw98TxDVtitioc9sZVFQsrjeP4AclKXNgUKJFgIhAKuhQU1kXwvwaL4Tq3XscJhRYoKh08CrYkeglZX1nStH"}]},"readme":"# rondo\n\nThe browser is not node. __Rondo__ is an attempt at fixing this problem. \n\nRondo is a client-side DOM library and application suite. The API is modeled \nafter the modules and conventions of __node.js__, to give a more node-like \nfeel to the frontend. It comes included with three core modules: a dom \nlibrary (`dom`), an api for doing network io (`io`), and an application \nframework and router (`app`).\n\nThe DOM module is built on top of the high speed and extensible\n[Zest selector engine](https://github.com/chjj/zest).\n\nThis has been a project and experiment of mine for some time. I felt like \nreinventing the wheel. This is an early release. The API is unstable. Tests \nstill need to be polished. \n\n## What it looks like\n\n``` js\nvar $ = require('dom')\n  , io = require('io')\n  , app = require('app');\n\napp.set('engine', mustache);\napp.set('view', '#content');\n\napp.get('/:foo', function(req, next) {\n  req.setCookie('hello', 'world');\n  req.setHeader('Content-Type', 'application/json');\n  req.send({ hello: req.params.foo }, function(err, res) {\n    if (err) return req.redirect('/404');\n    req.render('#template1', {\n      hello: !req.query.world ? 'mars' : 'world',\n      data: res.body\n    });\n    setTimeout(next, 2000);\n  });\n});\n\n$.ready(function() {\n  if (app.getPath() !== '/') {\n    $('#content').render('#template2', {\n      another: 'page',\n      and: 'more locals'\n    });\n    setTimeout(function() {\n      app.setPath('/');\n    }, 2000);\n  }\n\n  $('<a>hello</a>', {\n    '@href': '/foo',\n    '@title': 'click me!',\n    ':margin-left': '-20px',\n    ':color': 'red',\n    'className': 'foo'\n  }).appendTo('#content');\n});\n\n$.live('button', 'click', function(ev) {\n  var el = $(ev.target);\n  el.setContent('<b>thanks for clicking me</b>');\n  el.set(':color', '#000');\n  el.animate({scale:1.5});\n  ev.preventDefault();\n});\n\nio.script('/foo.js', function(err) {\n  if (!err) console.log('loaded');\n});\n```\n\nThe app's router was intended to act like the connect/express router. It will \nwrap your handlers in a try/catch, and pass a caught error down the stack.\n\n## Installation and Build\n\n``` bash\n$ npm install rondo\n$ cd rondo\n$ make\n```\n\n## Browser Support\n\nI don't want to support every browser ever made. I'm currently (and \nreluctantly) supporting IE7. I maybe want to drop IE support in the \nfuture, once the stranglehold IE has on the web loses even more of its grip.\n\n## API\n\n### DOM (defined in dom.js)\n\n- Numerous. Consult lib/dom.js for now.\n\n### Request (defined in io.js)\n\n- `req.method`\n- `req.headers`\n- `req.url` - The URL of the request.\n- `req.pathname`\n- `req.query` - The query object.\n- `req.rawQuery` - The query string.\n- `req.cookies`\n- `req.body` - The body's object.\n- `req.rawBody` - The body's data.\n- `req.setHeader`\n- `req.getHeader`\n- `req.header`\n- `req.setCookie`\n- `req.getCookie`\n- `req.send` - Send a request using the current `req.url`.\n\n### Response (defined in io.js)\n\n- `res.url`\n- `res.statusCode`\n- `res.headers`\n- `res.body`\n- `res.rawBody`\n\n### IO (defined in io.js)\n\n- `io.request` - Send an XHR.\n- `io.get`\n- `io.post`\n- `io.jsonp` - A JSONP request.\n- `io.script` - Dynamically insert and load a script.\n\n### Application (defined in app.js)\n\n- `app.settings` - The configuration of the app.\n- `app.set` - Set or get a setting.\n- `app.render` - Render a template.\n- `app.get`, `app.put`, `app.post`, `app.del` - Router API.\n- `app.setPath` - Set's the current path.\n- `app.getPath` - Get the current path.\n\n## License\n\nMIT Licensed.  \nSee LICENSE for more info.\n","maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}]}},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"time":{"modified":"2022-06-26T14:08:02.213Z","created":"2011-08-12T23:48:29.697Z","0.0.1":"2011-08-12T23:48:33.003Z","0.0.2":"2012-03-01T02:15:52.388Z"},"author":{"name":"Christopher Jeffrey"},"repository":{"type":"git","url":"git://github.com/chjj/rondo.git"}}