Hello Jonny,

It is a public API, nothing to do with forms or rendering pages.
Do you have any other suggestion?

Thanks,
danmilon.

On 09/25/2012 10:31 PM, Jonathan Buchanan wrote:
> On 25 September 2012 14:33, Dan Milon <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hello,
> 
>     I question myself how I should validate input all the time, but
>     still i haven't found the right way.
> 
>     Using an orm's validation tools feels wrong. Eg mongoose. It ties
>     validation with the underlying database.
> 
>     node-validator is quite limiting. The way it throws errors is hard
>     to deal with lots of validations.
> 
>     How do you guys validate your input and deliver meaningful responses?
> 
> 
>     Thanks,
>     danmilon.
> 
> 
> Are forms [1] or newforms [2] the sort of thing you're looking for? If
> you're willing to live with their default markup options, you get form
> rendering, redisplay and validation error message display for free.
> 
> Newforms is my own port of django.forms to JavaScript. It does most of
> what django.forms does, but is still in the process of being dogfooded
> and doesn't yet support any sort of validation which needs async I/O,
> such as file uploads or pinging URLs.
> 
> It seems to work decently with Jade thanks to its lovely mixins, though
> - these are the ones I'm using for layout and error display in a current
> Bootstrap project [3]
> 
> Jonny.
> 
> [1] https://github.com/caolan/forms
> [2] https://github.com/insin/newforms
> [3] https://github.com/insin/successcrm/blob/master/views/mixins/forms.jade
> 
> -- 
> 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

-- 
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

Reply via email to