0.5.6 • Published 11 years ago
okaylib v0.5.6
ok
Extensible MVC library
Installing
Clone repo
Clone with git:
$ git clone https://github.com/j-/ok.gitServer
Use npm to install:
$ npm install --save okaylibClient
The ok client library depends on underscore.
Use bower to install:
bower install --save okaylibOr include the JS file:
<script src="https://cdn.rawgit.com/j-/ok/0.5.6/ok.js"></script>Using
Server
Load the module:
var ok = require('okaylib');AMD
Using an AMD library like require.js:
require(['okaylib'], function (ok) {
});Or you may be able to use the CommonJS style:
define(function (require) {
var ok = require('okaylib');
});Global
If AMD and CommonJS detection fails, ok will expose two globals, ok and okaylib. If there is a naming conflict you can call ok.noConflict() to restore the ok global to its value before ok was loaded.
Documentation
ok is documented with jsdoc style comments for generating docs.
Installing jsdoc
Install the jsdoc binary with npm:
$ npm install --global jsdocGenerating docs
In the ok/ directory:
$ jsdoc .Documentation will be generated in ok/out/.