I've decided to use MVC Pattern on my site. So, now I use Backbone.js framework on my site.
All actions on my site are ajaxy
, so server only gets data from db, and saves data to db.
Do I need to use MVC on the server side too? It's complicating all, isn't it?
Or I may use MVC on client side, and have simple server api, that only fetches/saves data and makes some small server job?
UPD: I understand that I should use Models
on server side. But what are Views
for on server side - if I render all information with javascript?
So, Is it a good pattern, that server side works only with raw data - models
- it always returns json
, and has no relation with html-markup and other things related to Views
?