ltx icon indicating copy to clipboard operation
ltx copied to clipboard

tagString should ignore `null/undefined` substitutions

Open sonnyp opened this issue 7 years ago • 0 comments

To allow something like

function m (bar) {
  return ltx`<foo bar='${bar}'>`
}
m(undefined)

to return <foo/>

maybe even

function m (bar) {
  return ltx`<foo><${bar}/></foo>`
}
m(undefined)

to return <foo/>

sonnyp avatar Mar 04 '17 14:03 sonnyp