Work in progress. Pass in a hyperscript function and data object, return HTML.
$ npm install h-shopping-cart
http://demos.nichoth.com/h-shopping-cart
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)