in reply to Re^3: Generating an HTML survey form from simple markup
in thread Generating an HTML survey form from simple markup

I get your point, and for many uses, I'd agree. I may yet go with YAML. One issue is that I'd like this to optionally be part of a pod document - I'll first run Pod::HTML on the text file, then parse the form fields into HTML within that generated document. This will allow the text file to contain things like survey section headings and commentary paragraphs. I'm not sure that would integrate too well with YAML (though I suppose I could mark YAML sections and parse them separately). Maybe by describing my audience as "non-techies" I was misstating my goal. My first goal is to make this something that I can quickly whip up a survey by making the simplest possible podfile and generating from that.
  • Comment on Re^4: Generating an HTML survey form from simple markup

Replies are listed 'Best First'.
Re^5: Generating an HTML survey form from simple markup
by clscott (Friar) on Feb 04, 2005 at 16:59 UTC
    If you;d like it to go into POD then you could always use a =for or a =begin/end bock and subclass a POD parser to extract it and deal with it how you want like:
    =begin formdef action: '/somepath/foo.cgi' fields: - [ text, name, "Your name:" ] - [ radio, gender, Male, Female ] - [ textarea, complaints, "Enter your complaints here", 80, 24 ] =end formdef
    --
    Clayton