Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemol/nzilajs
A lightweight and very simple (but powerful) client side javascript MVC framework.
https://github.com/lemol/nzilajs
Last synced: about 6 hours ago
JSON representation
A lightweight and very simple (but powerful) client side javascript MVC framework.
- Host: GitHub
- URL: https://github.com/lemol/nzilajs
- Owner: lemol
- Created: 2012-04-19T05:53:00.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-22T22:44:59.000Z (over 12 years ago)
- Last Synced: 2023-03-23T11:58:23.997Z (over 1 year ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
nzila.js
========A lightweight and very simple (but powerful) client side javascript MVC framework.
##Examples
Consider the html:
```html
Hello world! |
Hello me (put your name on the url)
```1. With simple actions:
```javascript
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();
```2. With controller:
```javascript
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](http://github.com/lemol)** (*[Lemol-C Software](http://lemolsoft.webs.com)*)