zspecza / common-tags

🔖 Useful template literal tags for dealing with strings in ES2015+
Other
2k stars 61 forks source link

Investigate chaining #34

Closed zspecza closed 7 years ago

zspecza commented 8 years ago

Being able to chain an infinite amount of tags would be really useful.

It would basically be the same functionality as the tail processing syntax:

tag(otherTag)`some text`

but instead of being limited to one extra tag, you could chain as many as you want

tag.otherTag.thirdTag`some text`
zspecza commented 7 years ago

Achieving this syntax is not trivial, having tested it out. Would require a complete rewrite of common-tags, which I won't consider (yet - as there are other features and build processes I would like to try out, but the JS ecosystem is not quite there yet in terms of practicality)

Closing for now.