Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    raekwonpublic

    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)

    Keywords

    none

    install

    npm i raekwon

    Downloadsweekly downloads

    2

    version

    2.0.0

    license

    Apache-2.0

    repository

    githubgithub

    last publish

    collaborators

    • avatar