timcraft/formeze — pull request #1 by robmiller (2013-07-24 22:44:00+00:00)
Title: HTML options on fields

Would it be possible to include some new options on fields that relate to the final HTML without compromising Formeze's design goals?

I wrote a quick blog post outlining how I've been using Formeze recently:

http://robm.me.uk/2013/07/24/outputting-html-with-formeze

Basically, I add a couple of new properties to fields (see pull request), allowing me to do something like:

field :email, maxlength: 255, type: 'email', placeholder: 'e.g. bob@example.com'

…which then means, when I come to outputting the form, I can just iterate over `@form.fields` and instantly know what HTML to output. (In this case, ``.)

Does this fit with the ethos of Formeze?