DrawerJs

A customizable WYSIWYG HTML canvas editor.

View the Project on GitHub

Directories

# File structure

We have a file [Globals.js] which defines DrawerJS namespace as well as some child namespaces like DrawerJS.plugins.

We use Self-Invoking functions to scope file’s namespace.

Any file should follow this pattern:

 (function($, drawer) { // receive passed globals 
     // module code
 }(jQuery, DrawerJS));  // pass objects from window global namespace

All files are concantenated into one with Grunt.