SPA Javascript component framework for making SPA's in Javascript.
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.
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.
We're working on actual docs, promise. Two minutes, Turkish.
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()
.