Is entire backbone needed or is Backbone.sync enough? (with some custom changes?)
0xgeert opened this issue · 0 comments
0xgeert commented
I really like create.js and what it stands for and have been following it's development for some time now.
One roadblock for adoptation (upcoming project) is the reliance on backbone: I don't want Backbone to essentially mandate how I should be writing client-side apps. (I like to take a widget-centralied approach instead, probably with Twitter Flight), instead of bloated clientside MVC. Opinions differ of course.
However, I'd still like to incorp. create.js in the whole, with a imagined workflow as such:
- In read-mode content (say a blogpost) is annotated with RDFa.
- On edit I provide an JSON-schema with validation stuff, extended with whatever data is necessary for create.js
- Have create.js create the contentEditables, and edit at well.
- Bidirectional binding will take care of creating a json-object that validates against the Json-schema. Not sure whether validation depends on backbone as well to be honest.
- Use backbone.sync to post/put to the backend.
Would such a scenario be possible with some modifications? I'd be willing to put effort into this, if I have some feel of the amount of effort and the elegance with which this could be integrated.