Resource Loader •js •css •ajax •imgs
JavaScript HTML Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.dev
builds
lib
src
test
.gitignore
.npmignore
.travis.yml
README.md
bower.json
build.js
package.json

README.md

IncludeJS

The Resource Loader for Browsers and NodeJS

Build Status NPM version Bower version

Features:

  • Loads any content: scripts, styles, ajax

  • Development friendly: incremental builds are not required

  • Production: Build the application into single html, js and css @see the Atma.Toolkit

  • Inline Dependency Declaration

    No external files, such as package.json or config.js

  • Load any javascript

  • No prerequests for module declaration. But supports also CommonJS and include.exports

  • Namespaced routing

     include
     	.routes({ controller: '/src/controllers/{0}.js' }); 
     	//... 
     include
     	.js({controller: 'user' });
  • Parameterized include

     // foo.js
     include.js({ compo: 'baz?color=green' });
     
     // baz.js
     document.body.style.backgroundColor = include.iparams.color
  • Javascript Aliases

     include.js('myScript.js::Logger').done(function(response){
     	response.Logger.logMe();
     });	
  • Custom Loader Support

  • Lazy Modules

    Scripts will be evaluated only when you needs them

  • Pause resource loading

     // pause current module
     var resume = include.pause();
     
     someAsyncJob(function(){
     	// resume with exports example
     	resume({ baz: 'quux' });
     })

©️ 2014 Atma.js Project