Closed yortus closed 8 years ago
Hi @yortus - glad you're enjoying the library! Sure, I can get down with adding an alias. Perhaps source
or structured
?
Great. source
sounds good, or maybe codeBlock
.
@yortus - I've added source
and codeBlock
aliases for the html
tag in #35. This is published on NPM as v1.2.0
That's awesome, thanks @declandewet!
I came across this library via 2ality. Thanks for this great collection of problem solvers!
My main use is for the
html
tag - but my template contains JavaScript source code, not HTML. In fact thehtml
tag is pretty useful while generating any block-structured code with correct indenting.It looks a little strange and not so self-documenting to see JavaScript source inside a
html
tagged template. At present I just import it using something likeimport {html as js} from 'common-tags'
, but it also looks a bit odd seeinghtml
there.So, I was wondering if this tag could have a more generic name (or at least an alias) exported from the library itself?