Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Integrated Components
CoffeeScript JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
source
specs
.drone.yml
.gitignore
.travis.yml
LICENSE
README.md
build.coffee
package.json

README.md

Stories in Ready

Coffer Build Status

Coffer is a components framework, designed from the ground up to be modular, extensible and easy to use.

A Component

TODO

Usage (development)

Basic usage

Build / Download the Coffer client and load it into your application

<script type="text/javascript" src="coffer-client.js"></script>

This will create Coffer global variable that can you use the create a component, it will connect to the registry and emit components-ready event.

Registering a local component

Just call Coffer.register with the name and contents of the component, the callback will be run when the component is registered.

Coffer.register('tagname', {css:'', events: ..., properties: ...}), callback)

Create a component

The example below will create a local component if it exsists otherwise it will retrieve the component from the registry and create it, if it can't find it, it will create the elment nonetheless but it will be empty and won't contain any events, properties or CSS.

Coffer.create('tagname', function(element){
  console.log(element);
})

Production / Build

TODO

Framework Development

Development goes in a Trello board: https://trello.com/b/nVlowUCH/components

Something went wrong with that request. Please try again.