wavesoft / dot-dom

.dom is a tiny (512 byte) template engine that uses virtual DOM and some of react principles
Apache License 2.0
806 stars 53 forks source link

Support SSR ? #27

Open cheft opened 7 years ago

cheft commented 7 years ago

Support SSR ?

wavesoft commented 7 years ago

Unfortunately there is no native support for Sever side rendering. You could use it in combination with mock-browser or something similar but I would not recommend it. 

Nonetheless rendering the virtual dom to HTML is pretty straightforward to implement and I might add this feature in the future, if there is enough interest.

styfle commented 7 years ago

This SSR feature could be apart of the compatibility layer I mentioned in #26 since react has this feature implemented.

joshgillies commented 7 years ago

@cheft maybe try something like https://github.com/ember-fastboot/simple-dom in conjunction with dot-dom templates.