Fork me on GitHub
Tweet

jqNano 0.3 by ioleksiy

a minimalist JavaScript MVC framework

Description

Have you ever dreamed about tiny JS framework, which does not need a lot of time for getting it work? This open-source jQuery library is made to make developer life easier and happier.

Here is the example of installation (inside jQuery ready function):

        $(document).ready(function(){
            $.nanoMvc();
        });
    

And this is an example of simple controller (it will react on `#` or `#default` in address bar):

        NanoController.create({
            init: function() {
                this.action('default', function(){
                    return this.string('Hello world!');
                });
            }
        });
    

This is all you need to start. Other features are described in wiki:

Our plans are only to make this version more stable and reliable. But not to grow it with a lot of non-needed functionality

For more information, please, read wiki.

Demo

We have created a demo pages, where you can read and investigate source code with FireBug or something like this:

Requirements

Desktop version requires jQuery library. For mobile - zepto.js is enough.

And don't forget, that such behavior is good for standalone web-based applications, but not websites and catalogs, which should be indexed by search engines.

Contact

Please, use GitHub's issues page. We will try to answer as soon as possible.

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/ioleksiy/jqNano