I'm currently working on a system that takes an HTML file as a template. It parses the HTML with TreeBuilder and modifies/completes/fixes form tags and attributes, to build the form, and then in display mode it replaces the form fields with the actual values. So it provides a template that can act as the form and the report in a way.

Recently i was looking at Form::Magick and was wondering if anyone had experience with it? Is it easy to extend? Would i be better extending it than building my own?

Also i am interested in making it extendible, so that submitted forms could go straight to email, be produces as PDF's, saved, posted to a database, etc. I want to provide that as either modules, or maybe overiding functions, but i've never done this, and i was hopeing for some hints,pros and cons, or perhaps even a different way i am over looking.

To sum it up, I hope this isn't too wandering or vague, i'll try and provide more details as i hammer it out in my head :-)
Eric Hodges

In reply to CGI From Templates by eric256

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.