oj | oj.min.js (0.3.4) | oj.js (0.3.4) | docs |
YouTubeVideo | oj.YouTubeVideo.min.js | oj.YouTubeVideo.js | docs |
VimeoVideo | oj.VimeoVideo.min.js | oj.VimeoVideo.js | docs |
JSFiddle | oj.JSFiddle.min.js | oj.JSFiddle.js | docs |
GitHubButton | oj.GitHubButton.min.js | oj.GitHubButton.js | docs |
TwitterButton | oj.TwitterButton.min.js | oj.TwitterButton.js | docs |
AceEditor | oj.AceEditor.min.js | oj.AceEditor.js | docs |
markdown | oj.markdown.min.js | oj.markdown.js | docs |
mustache | oj.mustache.min.js | oj.mustache.js | docs |
All examples are included in the oj-examples project. To take a look at them clone the repository with git:
git clone [email protected]:ojjs/oj-examples.git
Or just go there directly:
The goal of these is to get you started as fast as possible. If these don't work immediately let me know and I'll fix them so they are even more clear.
Getting started with OJ is as simple as including oj.js and executing code. Here is Hello World in JSFiddle:
To get started with model binding with Backbone check out this example:
Important: Express support isn't implemented yet. This is my #1 priority after this documentation push.
For those wondering why it doesn't exist yet: the challenge is that serious caching is necessary for minification and require
traversal. A simple "one function" approach would be pretty trivial. It is just getting support the command-line tool's file unification and minification that is hard.
If you are an expert on Express middleware integration, please feel free to reach out.