Intro
This is a simple and small javascript MVC framework for building interfaces.
Installation
npm install --save orka-js
This assumes that you’re using npm package manager with a module bundler like Webpack or Browserify to consume CommonJS modules.
If you don’t yet use npm or a modern module bundler, and would rather prefer a single-file UMD build that makes Orka.js
available as a global object, you can grab a pre-built version from cdnjs. We don’t recommend this approach for any serious application, as most of the library complementary to orka are only available on npm.
Documentation
We're currently expanding and rewriting our docs content - check back soon for more updates!
How Does It Work?
Home file:
<div>
{{message}}
</div>
Index file:
<div o-view>
// rendered view
</div>
<script>
Orka.AddRoute(controller, route, template);
var route = "home";
var template = "home.html";
funtion controller(model){
model.message = "Hello World!";
}
</script>
We do a deep dive on how Orka works in this readthesource episode.
Enjoy!
License
MIT