This might be another valid reason embedding <TMPL> tags in comments?! Rather than just being fanatical about valid HTML ;)
I'm sincerely interesting in hearing if others have experience with this, have alternate solutions, ideas why my solution might not work, etc. PS....I'm "pre" parsing the template, in conjunction with a naming convention for the both the HTML form tags names and the Perl/TMPL variable names, so I can "pre" fetch data with DBI to set these variables. For instance: <input name="DB_patient_firstMiddle" ....> where "patient" is the table, and "firstMiddle" is the field. I could do _all_ this with CGI.pm, but its nice to visually design my forms and pages and then use HTML::Template. This way I can show a pretty static page to managers who insist on "seeing something". Furthermore, by using comments, I won't have to hear them say "Why do your text fields have TMPL_VAR .... in them?" ;) Hope this helps or is of interest.... --- George Jempty <[EMAIL PROTECTED]> wrote: > Date: Sat, 1 Dec 2001 05:49:53 -0800 (PST) > From: George Jempty <[EMAIL PROTECTED]> > Subject: Re: Parsing an HTML::Template file > To: [EMAIL PROTECTED] > > --- George Jempty <[EMAIL PROTECTED]> wrote: > > I would like to know what experience, if any, list > > members have had parsing HTML::Template files, > with > > either HTML::Parser or HTML::TokeParser, or any > > other > > appropriate library, including "home-grown", to > > extract <TMPL_VAR> tags? Hopefully I'll get some > > good > > feedback before I get too far along into the > > experiment I'm about to undertake ;) .... if not > > I'll > > post a followup recounting my own experiences. > > My experiment was "successful", in a limited way. I > used HTML::TokeParser, only looked at start tags, > and > only looked at their value attributes, which is > where > _most_ of my <TMPL_VARS> are ;) > > A seemingly "better" solution (I will try when I get > back to work Monday morning) would be to take > advantage of HTML::Template's option of putting your > template vars inside of HTML comments -- then that's > the only place your parsing routine has to look. > > HTH!! ===== George M. Jempty Database Admin/Intranet Architect Regional West Medical Center Scottsbluff, Nebraska [EMAIL PROTECTED][EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
