cognition-framework
v2.3.1
Published
Cogntion JS SPA framework
Downloads
13
Readme
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()
.