Skip to content

ohmubus/cognition-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cognition

SPA Javascript component framework for making SPA's in Javascript.

Links

Here's the cognition-framework package on npm.

We put together a quick project boilerplate and build system that will set up a project structure and serve it for you. That's called cognition-kit. Give that a spin.

Help

If you get stuck on something or just want to complement, complain, etc., feel free to hit up @enlore or @DarkMarmot. @landonb tends to live in the shadows, but he'll help, too if you ask nice.

The Basics

We're working on actual docs, promise. Two minutes, Turkish.

Network Plugin

Middleware style, provide a function that returns an object that looks like this:

function networkMiddleware () {
    {
        request: function (xhrSettings) {},
        isActive: function () {},
        abort: function () {},
        getStatus: function () }
    }
}

Pass the function to $.cognition.use("network-http", networkMiddleware) before calling $.cognition.init().

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •