Closed jeromew closed 10 years ago
It is hard to know if the hyperstream dependency if fully functional (what kind of security do you have when you start to stream utf-8 user edited content (?)). I'll have to try and understand that a bit better.
Make sure user submitted content is sanitized / escaped before you put inside your datastore.
I would be interested to know if you are satisfied/ really using koa-dom because the overal concept of a stream-replacer is very interesting in the context of koa.
Currently I'm mostly using co-render for templates as use cases where streaming templating are of good use are rather rare: Only if your page is big and uncached the streaming gives real gains.
Regarding react
, I have no idea how it works and this seems more like a templating language independent question, so you'd be better off posting that on react's issue list.
This module seems very interesting for using koa with streams.
It is hard to know if the hyperstream dependency if fully functional (what kind of security do you have when you start to stream utf-8 user edited content (?)). I'll have to try and understand that a bit better.
I would be interested to know if you are satisfied/ really using koa-dom because the overal concept of a stream-replacer is very interesting in the context of koa.
I tried to make "react" work on the server side to make a diffing push but react seems difficult to implement realistically on the server side & it may hard to extract the diffs + even for simple html I got things out like :
I also found https://github.com/dodo/node-dynamictemplate but like react your must keep a full dom virtual image before sending your modification events. It might be easier though to extract the diffs : https://github.com/dodo/node-dynamictemplate
Thanks for your feedback on this