I expected html-tag to accept numbers as values, for say this:
htmlTag(
'rect',
{
x: 10,
y: 10,
width: 30,
height: 30,
stroke: 'black'
}
)
Which currently outputs:
It might be nice to either throw an error for values that aren't strings, or allow the usage of numbers. Not a big deal, but I think it'd be a little more user friendly.
https://github.com/jonschlinkert/html-tag/blob/master/index.js#L35
I expected html-tag to accept numbers as values, for say this:
Which currently outputs:
It might be nice to either throw an error for values that aren't strings, or allow the usage of numbers. Not a big deal, but I think it'd be a little more user friendly.
https://github.com/jonschlinkert/html-tag/blob/master/index.js#L35