2.0.0 • Published 7 years ago

raekwon v2.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

Raekwon - Multi-dimensional arrays as dynamic templates.

Binds a multi-dimensional array of partial strings and elements to a host element.

let sub = raekwon.observed(['<div></div>'])
let arr = ['<h1>', 'Test', '</h1>', sub]
let el = document.createElement('test')
let proxy = raekwon(el, arr)
setTimeout(() => {
  el.innerHTML === '<h1>Test</h1><div></div>'
  let div = document.createElement('div')
  div.id = 'test-next'
  proxy.push(div)
  setTimeout(() => {
    el.innerHTML === '<h1>Test</h1><div></div><div id="test-next"></div>'
  }, 10)
}, 10)
2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago