Sri, I think it's common to re-use Backbone Models on both client and server, implementing the validate() method with custom validation logic that is run on both client and server. Backbone doesn't come with validation mechanisms built-in, but there are 3 backbone validation plugins listed on the [Plugins page] [1]: Backbone.Validations, Backbone.Validation and Backbone.Validator. [Backbone.Validation] [2] looks like it will run on node as well as the browser, I'm not sure about the other two.
[1]: https://github.com/documentcloud/backbone/wiki/Extensions%2C-Plugins%2C-Resources [2]: https://github.com/thedersen/backbone.validation -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
