Closed bodokaiser closed 10 years ago
This is not really different than the example in the readme except that yours is working together with co and has a middleware wrapper so probably not worth including in the readme.
We can add it in an ./examples folder as middleware.js
or something though
yeah also the test were a help. Howerver I got slightly confused by the example pointed out in the README: https://github.com/mnmly/simple-builder2-demo which uses the old API (so we should remove this maybe...)
yes, there are multiple links in the guide - and the guide seems to be for component(1) - but they shows old API usage for component 0.x So reading the guide is sometimes really confusing.
@jonathanong what you think? should we make a note on those links for now, or hide them while the projects and READMEs using old component version?
if any of them are for an older version, feel free to change it or let me know
It took me quite a time to get component setup in koajs (at least with the current API).
If possible I would add this as an example: https://gist.github.com/bodokaiser/36cdab1a3d731dca57e8