Socket
Socket
Sign inDemoInstall

javascriptmvc

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    javascriptmvc

simple javascript mvc framework for building interfaces


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 19 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc