New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

coffer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffer

Integrated Components

latest
Source
npmnpm
Version
0.0.32
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 23 Dec 2013

Related posts