Skip to content
/ appy Public

Set of tools to help Single Page Application development

License

Notifications You must be signed in to change notification settings

spatools/appy

Repository files navigation

Appy Build Status Bower version NuGet version

Set of tools to help Single Page Application development

Installation

Using Bower:

$ bower install appy --save

Using NuGet:

$ Install-Package Appy

Usage

You could use appy in different context.

Browser (AMD from source)

Configure RequireJS.

requirejs.config({
    paths: {
        jquery: 'path/to/jquery',
        underscore: 'path/to/underscore',
        appy: 'path/to/appy'
    }
});

Load modules

define(["appy/cache"], function(cache) {
    cache.loadScript("myScriptKey", "http://url.to/my/script.js").then(function() {
        // my code
    });
});

Browser (with built file)

Include built script in your HTML file.

<script type="text/javascript" src="path/to/jquery.js"></script>
<script type="text/javascript" src="path/to/underscore.js"></script>
<script type="text/javascript" src="path/to/appy.min.js"></script>

Documentation

For now documentation can be found in code.