0.0.7 • Published 8 years ago

h-shopping-cart v0.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

h shopping cart

Work in progress. Pass in a hyperscript function and data object, return HTML.

install

$ npm install h-shopping-cart

demo

http://demos.nichoth.com/h-shopping-cart

example

var renderCart = require('h-shopping-cart')
var bel = require('bel')
var style = require('h-shopping-cart/index.csjs')  // csjs styles

var cart = renderCart(bel, {
  rows: [
    {
      delete: bel`<button>delete</button>`
      title: 'Example Product',
      quantity: '3',
      priceEach: '$7',
      priceTotal: '$' + 7*3
    }
  ]
})

document.body.appendChild(cart)
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago