Stitches

An HTML5 Sprite Sheet Generator

http://draeton.github.io/stitches
Copyright 2013 Matthew Cobbs
Licensed under the MIT license.

Stitches is an HTML5 sprite sheet generator.

Stitches is developed by Matthew Cobbs in concert with the lovely open-source community at Github. Thanks are owed to the developers at Twitter for Bootstrap, and Glyphicons for some cool little icons.

Addtionally, I want to thank James Taylor for the Docker documentation tool, and most of all the good folks who develop RequireJS and GruntJS, for helping this all make sense.

RequireJS Main

Kicks off application on elements matching .stitches

require({
    paths: {
        "tpl" : "../tpl"
    }
},
[
    "wrap/jquery",
    "module/stitches"
],
function($, Stitches) {

    "use strict";

    $(document).ready(function () {

        var selector = ".stitches";

        $(selector).each(function () {
            var stitches = new Stitches(this);
        });
    });

});