Skip to content

v1.2.0

Compare
Choose a tag to compare
@goto-bus-stop goto-bus-stop released this 02 Mar 11:17
· 25 commits to main since this release
3457524
  • Add ability to append or prepend to attributes (e9b71c3)

    hstream({
      '#app': {
        class: { prepend: 'beep ', append: ' boop' }
      }
    })
  • Remove attributes by setting attrName: null (32480ba)

  • Edit attributes by passing a function (32480ba)

    hstream({
      '#app': {
        title: function (prev) { return prev.toUpperCase() }
      }
    })
  • Edit html contents by passing a function (b562c5f)

    hstream({
      'code': {
        _html: function (source) {
          return highlightHTML(source)
        }
      }
    })