< documentation

scanners 1.0.x

usage

scan is a common pattern in application frameworks to allow the developers to simply register some application paths and allow the framework to 'discover' the application components there.

Scanning is encouraged as the default approach to building applications since it helps to enforce strong convention.

options

scan paths Function
The array of object literal scan paths specified as dot delimited strings.

examples

Adds every function on the specified literals as application objects. Once scanned they become available via $.$()

MyApp = &#x7B;
    Models:&#x7B;},
    Views:&#x7B;},
    Controllers:&#x7B;}
};

(function($)&#x7B;

    $.scan([
       "MyApp.Models",
       "MyApp.Views",
       "MyApp.Controllers"
    ]);

})(jQuery);
scanners releases

Project

Guides

This guide is applicable to both the jquery-claypool client and server application frameworks. Where the two differ functionally the documentation will provide notes and examples of usage in each environment.