Re: [htmltmpl] "Bad file descriptor" while parameter substituting

2005-10-14 Thread Karen
On 10/14/05, Petrov Dmithriy <[EMAIL PROTECTED]> wrote: > Damn! Big thanks!!! :) I just noticed I've been hitting "reply" instead of "reply to all" (I vastly prefer lists that have reply-to set to the list, and yes, I'm aware of the arguments against it), so I'll executive-summarize for the list a

Re: [htmltmpl] "Bad file descriptor" while parameter substituting

2005-10-14 Thread Karen
On 10/14/05, Sam Tregar <[EMAIL PROTECTED]> wrote: > Nope, and I hope the documentation didn't promise any. I'm firmly in > favor of exclusively using exceptions for errors, rather than C-style > boolean returns. Didn't say one way or t'other, hence my question. It might be worth putting that in

[htmltmpl] HTML::LinkList

2006-02-02 Thread Karen
It would be really cool if there were something like this: http://search.cpan.org/~rubykat/HTML-LinkList-0.07/lib/HTML/LinkList.pm only that produced TMPL_LOOPish results instead of final HTML, so you could do funky things like: my $html_links = link_list(current_url=>$url,

Re: [htmltmpl] html template loops (hash of a hash)

2006-08-30 Thread Karen
On 8/30/06, Covert, Jake (JSC.) <[EMAIL PROTECTED]> wrote: > Don't think this is a Perl error, so I'm thinking it's an HTML::Template > error, maybe. Yep, it's actually a Perl error. It's complaining about "@{$vendor_hoh{$vendor}}" in line 85: > 85 my ($rif, $rif_out, $graph, $raw, $per

Re: [htmltmpl] ELSE clause

2007-02-21 Thread Karen
On 2/21/07, Robert Hicks <[EMAIL PROTECTED]> wrote: It isn't readily apparent from the pod but can you have more than one clause? If they're nested: first case second case third case The TMPL_ELSE isn't an ELSIF, if that's what you're asking. -

Re: [htmltmpl] Trailing 1

2007-04-16 Thread Karen
On 4/16/07, Barry Michels <[EMAIL PROTECTED]> wrote: print $pjx->build_html($cgi,\&Show_HTML); This is going to print the result of the build_html... a nice successful 1, it appears. You might want to test the result, but you probably don't want to print anything on success. sub change_pag

Re: [htmltmpl] Numeric loops

2007-04-29 Thread Karen
On 4/29/07, Dan Horne <[EMAIL PROTECTED]> wrote: Is there a way to loop from a lower integer to an higher one? For example, say an article has a rating of 4. I'd like to loop from 1 to 4 and print a star at each iteration. The only way I can see of doing this is create an array ref in the perl c

Re: [htmltmpl] Numeric loops

2007-04-29 Thread Karen
On 4/29/07, Dan Horne <[EMAIL PROTECTED]> wrote: > Well, I'm not "so" concerned (which to me implies some kind of fervour > that I don't think I stated). I was simply asking if there was a way to > iterate through integer values that I couldn't see in the POD - simple > so the designers could decid

Re: [htmltmpl] Cannot open included file test.tmpl

2007-05-02 Thread Karen
On 5/2/07, Alicia Amadoz <[EMAIL PROTECTED]> wrote: > I have read something about environment variables HTML_TEMPLATE_ROOT > and HTML_TEMPLATE_PATH but I am very confused with how they should be > defined. Could anyone help me to solve this error? You can set the environment variables within Perl

Re: [htmltmpl] HTML::Template tutorials

2007-08-01 Thread Karen
On 8/1/07, Chris Henden <[EMAIL PROTECTED]> wrote: > I'm looking for a nice tutorial on HTML::Template authoring, aimed at > a client-side developer, without any references to perl techniques > (or perl references...). There's some documentation on that order in the python "port", though you'll ha

Re: [htmltmpl] Error - odd number of option parameters?

2007-09-16 Thread Karen
On 9/16/07, Tom Kopke <[EMAIL PROTECTED]> wrote: > > Line 468 reads: > my $template = HTML::Template->new(filename => $pperror_template); > > An earlier instance calling HTML::Template in the same file works > fine. > $pperror_template is, or has gotten, undefined. You can confirm this by rep

Re: [htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-19 Thread Karen
On 3/19/08, Alex Teslik <[EMAIL PROTECTED]> wrote: > But then I can no longer do all my escaping in the template. Well, you're effectively handing it a half-escaped string. That's kind of a special case. > So I propose that the HTML::Template escaping does not squash HTML entities. That would

Re: [htmltmpl] using a base "skin/gui" with H-T

2002-09-05 Thread Karen Cravens
On 5 Sep 2002 at 11:28, csajl wrote: > the tmpl_include function works but only as far as vertical layout blocks are > concerned (or am i missing something?). You're missing something. But it's more of an HTML issue than an H-T issue. > i searched the mailing list archives as well as google a

Re: [htmltmpl] using a base "skin/gui" with H-T

2002-09-05 Thread Karen Cravens
On 5 Sep 2002 at 13:58, csajl wrote: > i was thinking i'd have to parse the entire x.tmpl into a string and supply > that as a tmpl_var when i parse through the gui.tmpl. > the separate two calls don't necessarily bother me at this point, but didn't > understand if H-T was able to do such a thing

Re: [htmltmpl] get value from template?

2004-11-04 Thread Karen Cravens
On Wed, 3 Nov 2004 23:29:04 -0500, Bill Nixon <[EMAIL PROTECTED]> wrote: > I'm looking for suggestions on how to get a value from my template that can > be used in my Perl code. I'd rather not switch to another template module > that would provide this since HTML::Template has otherwise met my need

Re: [htmltmpl] Problem accessing directories through .tmpl files

2004-11-24 Thread Karen Cravens
On Tue, 23 Nov 2004 20:26:42 -0800 (PST), Kasturirangan Rangaswamy <[EMAIL PROTECTED]> wrote: >Now, the B.tmpl and C.tmpl files access images stored in yet another > directory (NOTE: Also tested by putting them in same directory and that > is not working either!!!). Those images are not getting

Re: [htmltmpl] H::T for discussion forum

2003-07-02 Thread Karen J. Cravens
e. The first method seems like it would work, but I haven't thought about it hard enough to make it work. I'll be interested in hearing what (else) you come up with. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.Net email sponso

Re: [htmltmpl] H::T for discussion forum

2003-07-02 Thread Karen J. Cravens
ve only one Lynx user, but since that one user is *me*, that demographic will by golly be pandered to...) -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commer

Re: [htmltmpl] H::T for discussion forum

2003-07-02 Thread Karen J. Cravens
too far right I just want to stop indenting, since (1) it's going to wrap off the side of the monitor, and (2) that generally only happens when it's degenerated into an argument, so who wants to read that anyway? -- Karen J. Cravens [EMAIL PROTECTED] --

Re: [htmltmpl] Problem with

2003-07-30 Thread Karen J. Cravens
s, but you can never be too safe in debugging. Not that I'm saying that's where the error is. Just that that's where the error would be if it was my code... -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.Net email spo

Re: [htmltmpl] securing an H::T site with username/password w/sessionmgt1

2003-09-03 Thread Karen J. Cravens
ML::Template, except the wiki, and I'm seriously considering rewriting TWiki so that *it* uses H::T too. -- Karen J. Cravens [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com

[htmltmpl] Nested loops and __first__

2003-09-13 Thread Karen J. Cravens
e I'm wrong, because I'd really like to leave global_vars on, and I'd really like to use __first__... -- Karen J. Cravens [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek

Re: [htmltmpl] Nested loops and __first__

2003-09-15 Thread Karen J. Cravens
ter* posting the question to the list... -- Karen J. Cravens [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Html-template-users mai

Re: [htmltmpl] Nested loops and __first__

2003-09-15 Thread Karen J. Cravens
On Mon, 15 Sep 2003, Karen J. Cravens wrote: KJC>As is usual, I discovered this only *after* posting the question to the KJC>list... And after that, I realized things still aren't working quite right. It's not the loop variables, though. It's the nested loop. I've

Re: [htmltmpl] formatting output of recursive functions

2003-09-25 Thread Karen J. Cravens
een template and code, you could pass a simple variable instead (level*N), and use it for the width of a clear graphic, or an empty table cell. Or if you're using expressions, you could pass the level value as is, and multiply it by the desired amount within the template. -- Karen J. Crav

Re: [htmltmpl] firing multiple templates

2003-09-27 Thread Karen J. Cravens
/HTML/Q_20737567.html (The problem is, of course, those of us who use non-Javascript browsers will only get one frame updated. Of course, my non-JS browser is also a non-framed browser, so I suppose it's a moot point...) -- Karen J. Cravens [EMAIL PROTECTED]

Re: [htmltmpl] firing multiple templates

2003-09-28 Thread Karen J. Cravens
ing two frames, but I can't think of any other way to do it. Depending on the structure of your page, you might be able to make the frames that need refreshed a nested framed page, though. -- Karen J. Cravens [EMAIL PROTECTED] --- This sf.

Re: [htmltmpl] using HTML::Template to generate static web pages

2003-10-11 Thread Karen J. Cravens
ally suitable for this kind of use, or if I'm OK>"abusing" it. If that's "abuse," then I'm "abusing" H::T more than I'm "using" it. -- Karen J. Cravens [EMAIL PROTECTED] --- This S

Re: [htmltmpl] using HTML::Template to generate static web pages

2003-10-12 Thread Karen J. Cravens
On Sun, 12 Oct 2003, Douglas Kirkland wrote: DK>I thought H::T was designed to make dynamic and static pages. The only DK>difference I found is where the output is sent. Not just pages, either... I use it to generate autoresponder emails and other fun things. -- Karen J. Cravens

Re: [htmltmpl] Ouptuttting to a named frame with IE

2003-10-28 Thread Karen J. Cravens
in the same frame the clicked link was in. (You can probably do something different with Javascript, but you should never count on that.) -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: SF.net Giveback Program. Does S

Re: [htmltmpl] newbie so this may be a faq

2003-11-03 Thread Karen J. Cravens
t, I'm somewhat puzzled. My guess would have to be that one of the two instances (presumeably the template, if the error was accurately quoted) has a typo somewhere. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email i

Re: [htmltmpl] nested TMPL_LOOP variables

2003-11-05 Thread Karen J. Cravens
ables exist in the inner loop if they're *used* in the outer loop. So if you put them inside a comment in the outer loop, you're more or less okay. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: S

RE: [htmltmpl] Comparing H::T:Expr variables

2003-11-19 Thread Karen J. Cravens
27;t that error be HTML::Template::Expr->new() if you're using Expr? (I haven't used Expr, myself, so I could be wrong.) -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceF

Re: H::T future (was Re: [htmltmpl] xml complant tags)

2003-12-08 Thread Karen J. Cravens
d HTML comments, so I don't know that it'd be worth adding code to the module for. I like minimalistic modules. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in

Re: H::T future (was Re: [htmltmpl] xml complant tags)

2003-12-08 Thread Karen J. Cravens
omewhere, and "HTML" in it nowhere. Aside from the appearance of the TMPL_ tags, it's not especially HTML-centric, and certainly some of us use it for generic templating. Course, that'd add work for us existing users, so I'm not going to lobby too hard for tha

Re: H::T future (was Re: [htmltmpl] xml complant tags)

2003-12-08 Thread Karen J. Cravens
I'd have it turned on at first, and have test templates that accept all of them and make sure they're showing properly, and then turn it off for production use.) -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is s

Re: H::T future (was Re: [htmltmpl] xml complant tags)

2003-12-08 Thread Karen J. Cravens
probably due to my penchant for constructing URLs inside the templates rather than in the code, of course. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just s

Re: H::T future (was Re: [htmltmpl] xml complant tags)

2003-12-08 Thread Karen J. Cravens
a la Perl Cookbook) to include in the documentation, though. Especially fancy variations that can look inside loops. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in

[htmltmpl] Re: H::T future

2003-12-08 Thread Karen J. Cravens
en the configuration ends and the template begins, and hand the rest of the file off to a new H::T instance. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just s

Re: [htmltmpl] Re: H::T future

2003-12-09 Thread Karen J. Cravens
e to decide to separate the config from the user content. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free

Re: [htmltmpl] Re: H::T future

2003-12-09 Thread Karen J. Cravens
sentially turning the whole site into a Wiki, technically I *am* going to have an auto-generated title. Not in the database, though; it'll more likely be the site + web + Wiki Word (a la "Phoenyx : Members : Karen Cravens"). Which sort of eliminates the problem, for me, I gu

Re: [htmltmpl] Re: H::T future

2003-12-09 Thread Karen J. Cravens
On Tue, 9 Dec 2003, Puneet Kishor wrote: PK>I achieve consistent look and feel via css. I achieve consistent layout PK>via H::T. I use CSS as well, but that doesn't change how the title gets handled. Perhaps if you could give an example of how you build the headers, it might be clearer to us.

Re: [htmltmpl] Re: H::T future

2003-12-09 Thread Karen J. Cravens
I'll probably end up doing, you're processing the content as a nested template, a la: $page->param("content", $subpage->output)). There are advantages and drawbacks to either approach. -- Karen J. Cravens [EMAIL PROTECTED]

Re: [htmltmpl] Re: H::T future

2003-12-09 Thread Karen J. Cravens
es your code significantly more complex. No doubt. But since those cases aren't generating things on the fly, I'm not too worried about the one-time performance hit. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored b

Re: [htmltmpl] Re: H::T future

2003-12-09 Thread Karen J. Cravens
t. Hence the refactoring. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everyth

[htmltmpl] Config bits within templates

2003-12-09 Thread Karen J. Cravens
This is the sort of thing I was thinking of... it's quick and dirty (*very* dirty), and really not worth even making into a module, but I did, at least in theory (I haven't used it yet, and may never... I can't actually remember the circumstances in which I thought it might be useful). It stomps a

Re: [htmltmpl] bulletinboard

2004-02-17 Thread Karen J. Cravens
;t found one yet.) -- Karen J. Cravens [EMAIL PROTECTED] --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1

Re: [htmltmpl] bulletinboard

2004-02-17 Thread Karen J. Cravens
On Tue, 17 Feb 2004, P Kishor wrote: PK> It was fun being at OSCON when this beast was born... Aw, rub it in, whydoncha? -- Karen J. Cravens [EMAIL PROTECTED] --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and dep

Re: [htmltmpl] bulletinboard

2004-02-17 Thread Karen J. Cravens
e that to the database directly. The problem I had with Ikonboard was that it didn't do any file locking... get two posts simultaneously and they'd stomp all over each other. Shades of Matt's WWWBoard. Of course, that was a couple of years ago, so it may have matured since then, an

Re: [htmltmpl] how to determine if tmpl_var exists in a loop?

2004-04-17 Thread Karen J. Cravens
oduce both the verification code and HTML fragments, or what. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technol

Re: [htmltmpl] how to determine if tmpl_var exists in a loop?

2004-04-17 Thread Karen J. Cravens
ubmit data that deliberately violates it. So the script has to know what list selections are permissible (presently I feed those *from* the script via TMPL_LOOP), things like that. Client-side checking absolutely can't be trusted to do that. -- Karen J. Cravens [EMAIL PROTECTED] -

Re: [htmltmpl] Whitespace (linefeed) suppression?

2004-05-11 Thread Karen J. Cravens
ngs up without introducing extra stuff into the final document. You end up with peculiarly-placed angle brackets, and resists the intrusion a bit, but you end up with no whitespace from this: That< TMPL_ELSE >The other Of course, then one has to be extra careful to get the angle bracket co

Re: [htmltmpl] warning_on_bad_params

2004-05-11 Thread Karen J. Cravens
d about missed params. Buy the mod_perl book... it has a lovely section on setting up test *instances* of a live server, without having to have a separate box, or compile, or anything. (I learned more about Apache from the mod_perl book than I did from the Apache book. Go figure.) -- Karen J

Re: [htmltmpl] Whitespace (linefeed) suppression?

2004-05-11 Thread Karen J. Cravens
mp on any filename.html versions that might occupy the same directory. No, make that two drawbacks: if you forget and save the file without undoing the Beautify-cation, you have to go and edit all the whitespace back out. -- Karen J. Cravens [EMAIL PROTECTED] --

Re: [htmltmpl] warning_on_bad_params (fwd)

2004-05-12 Thread Karen J. Cravens
But can he create a new instance of the server with a different config? Might be adequate. I run the test server on my own machine with only my own (normal-user) access. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.Net email is spo

Re: [htmltmpl] Re: [Comment] H::T => using to trigger

2004-05-09 Thread Karen J. Cravens
ion. Even if you assume all the users you care about use Javascript, you're also assuming that all the users who can submit data are honest. They're not. -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.Net email is sponsored by Slee

Re: [htmltmpl] Select/option How to set "selected"?

2004-05-03 Thread Karen J. Cravens
ted ones blank you *could* still use it in a TMPL_IF, but that's a bit risky...) -- Karen J. Cravens [EMAIL PROTECTED] --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Orac