shama / yo-yoify

Transform choo, yo-yo or bel template strings into pure and fast document calls
111 stars 17 forks source link

Why not adding whitespace between words? #53

Closed JSteunou closed 6 years ago

JSteunou commented 7 years ago

examples are like thousand words

const cap = require('lodash/capitalize');

bel`<p>${cap('hello')} ${cap('world')}!</p>`

will shout HelloWorld! with yo-yoify but Hello World! with bel

This come from https://github.com/shama/yo-yoify/blob/master/lib/appendChild.js#L15

JSteunou commented 7 years ago

Seems to be since https://github.com/shama/yo-yoify/pull/45

If some other people have the same issue you should stay with 3.7.2 as 3.7.3 introduced this breaking change without bumping major.

mantoni commented 6 years ago

For anyone coming accross this issue: I was able to use the nanohtml browserify transform as a drop-in replacement for yo-yoify and it doesn't have this issue.

bcomnes commented 6 years ago

Use nanohtml! Closing. Thanks!