🏷 - tagged template string virtual dom builder
This release contains some fixes for long-standing parsing issues:
Since these changes all modify parsing behavior it's prudent to bump the major package version.
Fix template parts inside comments (#75)
Now you can do:
html`
<div>
<!-- ${someElementThatIWantHidden()} -->
${someElementThatIWantShown()}
</div>
`
The someElementThatIWantHidden()
call is still evaluated, but hyperx won't output it.
undefined
or null
attributes are no longer added as strings. (@s9k in #57, @JRJurman in #70)