Skip to content
ioleksiy edited this page Mar 20, 2012 · 13 revisions

Have you ever dreamed about tiny JS framework, which does not need a lot of time for learning and getting it work? This open-source addon for jQuery-based syntax 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 with.

NOTE: this framework is targeting only web-apps which do not need search engine indexing, because all page changes are done without reload.

Basics

Templating

You can’t perform that action at this time.