shama / yo-yoify

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

[wip] Add support for choo nodes #9

Closed yoshuawuyts closed 8 years ago

yoshuawuyts commented 8 years ago

Work in progress patch for adding choo support. This would shave off ~3kb of the resulting bundle (7.2kb -> 4.6kb) making it one of the tiniest full-featured frameworks out there.

I hope this patch is acceptable; I think the added overhead to support choo too would be super little, and would help me out heaps!

I'm struggling a bit with getting this to work; if you spot any obvious mistakes: all help is welcome. I'll hopefully have this running super soon. Thanks!

shama commented 8 years ago

👍 to this, thanks!

shama commented 8 years ago

Heads up, this library is turning into a plugin that has the transform applied globally. This way we can further optimize the size of the outputted build. Hopefully it will make it easier to implement this as well.

yoshuawuyts commented 8 years ago

@shama ahhh, rad! I'll give it another go then :sparkles:

yoshuawuyts commented 8 years ago

Closing as https://github.com/yoshuawuyts/choo/issues/71 will make it easier and https://github.com/shama/yo-yoify/issues/13 is a bit of blocker rn. Creating an issue instead for now