Hacker News new | ask | show | jobs
by waterside81 5062 days ago
I'm confused about how this or similar offerings like backbone would fit into an existing web app framework like django. Would you even use this for django or rails? Because at the surface, it seems like I'd have to retype my model definitions in JavaScript (or at least code generate them) and then use some JavaScript templating system instead of django's.

Can anybody shed some light on this for me?

2 comments

I've been messing around a little with ember lately, I'm no expert, but from what I've tried using ember-data you can define the models directly from a REST endpoint response and pass that to your views or have other properties be dependent on them without ever explicitly specifying those fields exist.
Your assumption is pretty right, with backbone and this you would normally receive the model data from your server via JSON, and handle display and interface on the client side (coding the UI in Javascript would be the major advantadge, because you can get a speedier UI).