in reply to Re^2: Generating an HTML survey form from simple markup
in thread Generating an HTML survey form from simple markup
Yes, I considered YAML, but compare the legibility of your example to mine. Too much typing!
But the YAML is self documenting. You can tell exactly what each parameter that's being set; with positional parameters you have to remember the right order. If that's too chatty for you you could still use positional parameters and let YAML parse it.
action: '/somepath/foo.cgi' fields: - [ text, name, "Your name:" ] - [ radio, gender, Male, Female ] - [ textarea, complaints, "Enter your complaints here", 80, 24 ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Generating an HTML survey form from simple markup
by jZed (Prior) on Feb 03, 2005 at 17:47 UTC | |
by clscott (Friar) on Feb 04, 2005 at 16:59 UTC |