by gberger · 13y ago · 0 comments
A much better solution would be to generate the markup on the server-side. It should be easy enough to port this to Node, and a bit more of work for other major backend languages like Ruby, Python and PHP.
It could even be implemented as a webapp that takes the input JSON on the left side, and spits out HTML on the right, which I could paste into my site markup directly.
Right now, the trade-off is too big for the developer-time convenience of generating forms dynamically.
This is very useful for when you have a single API that drives your web, Android, and iOS apps. Your back-end just describes the form in JSON and each front-end is responsible for how that form renders. Alpaca is just a shortcut for your web front-end.
Java ,PHP ,Ruby and Python have had excellent form libraries for years ,handling multipage forms ,complex client/server/db validation , etc...
I say it's more difficult to do anything in node,as soon as you have a complexe domain model.