RE: [htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Chris Davies
Chisel Wright [EMAIL PROTECTED] wrote: > I've always been uncomfortable using eval(). > I know /how/ to use it, but it just feels dirty. > What are the negative effects (if any) of using eval()? Fundamentally here are two different ways of using eval (plus, of course, the option of not using it a

RE: [htmltmpl] HTML::Templates and PerlIO integration?

2003-06-18 Thread Chris Davies
Andrew Hammond wrote: > I'm using HTML::Templates to generate email messages in ISO-2022-JP > character set. It mostly works correctly except for a little munging. > I suspect it's Perl trying to do the Right Thing with a mix of > character sets. Is there any way to control the way that template >

RE: [htmltmpl] Installing HTML::Template without using PPM

2003-03-10 Thread Chris Davies
On Monday, March 10, 2003 10:51 AM, [EMAIL PROTECTED] wrote: > Sensitivity: Private Not entirely sure why you're flagging a message sent to a public mailing list as "private", but hey. > I've recently run into a problem, tho - I am working on a webserver I > have no control over (and, therefore,

RE: [htmltmpl] Trimming whitespace

2003-02-10 Thread Chris Davies
On Fri, 7 Feb 2003, Drew Taylor wrote: > Is there a way to trim the extra whitespace\newlines from the final > output? Sam Tregar wrote: > HTML::Clean works for some people. In general I don't let it bother > me. It's just a few extra bytes and the browser certainly doesn't > care. The browser

RE: [htmltmpl] Does HT:Expr evaluate each loop iteration?

2003-02-05 Thread Chris Davies
I wrote: > Of course, the presence of the "4" shades the separation of code and > content somewhat. Drew Taylor replied: > I would disagree Ooops. End-of-day brain fade. Sorry about that - you're all quite correct. Chris --- This SF.NET email

RE: [htmltmpl] Does HT:Expr evaluate each loop iteration?

2003-02-05 Thread Chris Davies
On Wed, 5 Feb 2003, Andrew Brosnan asked: > Can H:T:Expr be used inside a loop to evaluate each iteration of the > loop? Sam Tregar corrected the suggested syntax with, > Of course, the presence of the "4" shades the separation of code and content somewhat. Chris ---

RE: [htmltmpl] applying post filters to HTML::Template processing?

2003-01-30 Thread Chris Davies
Timothy Appnel wrote: > But one overriding need I have is to > allow for a designer who doesn't know Perl (nor > should they have) to work with the look and feel > while a developer like myself works on logic and > implementation. I couldn't find any reference to > this topic in the archives. Poss

RE: [htmltmpl] how to display data in four columns

2003-01-17 Thread Chris Davies
> I have been able to successfully display the fetched data in two > columns but now I need to do the same thing in four columns. Has > anyone done something similar ? If so, would really appreciate the > code segment. > > On the same note, has anyone worked on a generic routine for > displaying da

RE: [htmltmpl] paragraphs, html and TMPL_VAR's

2002-11-22 Thread Chris Davies
ded by underscores, e.g. _like_ _this_, are to mean that those words should be made italic. It handles *bold* too. References: http://www.zipcon.net/~showell/cgi-bin/FolderPiki.py/main%3AWikiFormatti ng http://twiki.org/cgi-bin/view/TWiki/TextFormattingRules Chris -- Chris Davies, Manheim A

RE: [htmltmpl] Getting Data from DBI into H::T

2002-09-03 Thread Chris Davies
f you do a search in the mailing list archives for words like "fetchrow" you'll see a plethora of examples and suggestions. Chris -- Chris Davies, Manheim Online Tel. 0113 393-2004 Fax. 0870 444-0482. Mobile 07778 199069 --

RE: [htmltmpl] (no subject)

2002-06-28 Thread Chris Davies
Duh! Sorry Chris -- Chris Davies, Manheim Online Tel. 0113 393-2004 Fax. 0870 444-0482. Mobile 07778 199069 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Philip S Tellis Sent: Friday, June 28, 2002 10:31 AM To: HTML::Template List Subject: RE

RE: [htmltmpl] (no subject)

2002-06-28 Thread Chris Davies
Presumably you use DBI to get the data from your database. DBI provides an "escape the quotes" operation for strings containing single quotes. You could perhaps use that to process your data prior to giving it to H::T Chris -- Chris Davies, Manheim Online Tel. 0113 393-2004 Fax. 087

RE: [htmltmpl] Nested Loops

2002-06-26 Thread Chris Davies
ficeLocation, EmpNames => \@whatever}; } $thtml->param(OFFICES => \@Offices); Chris -- Chris Davies, Manheim Online Tel. 0113 393-2004 Fax. 0870 444-0482. Mobile 07778 199069 --- This sf.net email is sponsored by: Jabber I

RE: [htmltmpl] TMPL_IF truth vs definition

2002-06-21 Thread Chris Davies
--- --- --- undef undef "" "" 0 1 0 1 1 1 1 1 2 1 2 1 Chris -- Chris D