Skip to content
/ nzilajs Public

A lightweight and very simple (but powerful) client side javascript MVC framework.

Notifications You must be signed in to change notification settings

lemol/nzilajs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nzila.js

A lightweight and very simple (but powerful) client side javascript MVC framework.

##Examples

Consider the html:

<a href="#!/hello/world">Hello world!</a> |
<a href="#!/hello/me/MyName">Hello me (put your name on the url)</a>
  1. With simple actions:
var app = new nzila.App();

app.route("hello/world/", function() {
    alert("Hello world!");
});
app.route("hello/me/:name", function(name) {
    alert("Hello " + name + "!");
});

app.start();
  1. With controller:
function Hello() {
}
Hello.prototype = {
    world: function() {
        alert("Hello world!");
    },
    me: function(name) {
        alert("Hello " + name + "!");
    }
};

var app = new nzila.App();
app.route("hello", nzila.Controller(Hello));
app.start();

by Leza Morais Lutonda (Lemol-C Software)

About

A lightweight and very simple (but powerful) client side javascript MVC framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published