insin / newforms

Isomorphic form-handling for React
http://newforms.readthedocs.org/
Other
642 stars 48 forks source link

Can this be used with Express? #56

Open alsoicode opened 9 years ago

alsoicode commented 9 years ago

I'm a Django developer most of my day, but I'm starting to do more and more on the Node side. Can newforms be used with Express?

insin commented 9 years ago

Yes, BUT I haven't tried using it with string template engines since I switched it over to outputting ReactElements. You might have to write some helpers to do a React.renderToStaticMarkup step if you're not intending to render with React on the server.

This repo uses the last pre-React version (v0.4.2) with Jade mixins for form rendering, for example: https://github.com/insin/successcrm

Revisiting the string template use case is on the TODO list.

alsoicode commented 9 years ago

Thank you for the quick answer. I'll take a look at that pre-React version as soon as I can. It would be super if the library could be used with multiple templating engines like Jade, Nunjucks, etc.