Re: [htmltmpl] Data -> template (brain -> Perl)

2009-09-11 Thread Robert
On Fri, 11 Sep 2009 11:12:57 -0400, Brad Baxter wrote: > Bob, > > You need to 'return' the data rather than 'print'ing it. > > Brad > Yup, figured that out about 2 minutes after I posted. :-\ Bob -- Let Crystal Repo

[htmltmpl] Data -> template (brain -> Perl)

2009-09-11 Thread Robert
I am using XML::Simple to get some "simple" XML data. $template->param( DATA => sub { for my $list ( @{ $data->{list} } ) { print "$list->{name}[0]$list->{description}[0]"; } } ); That prints the data to the template at the top...it doesn't go into the DATA var. D

Re: [htmltmpl] ANNOUNCE: Dada Mail 3.0 Released

2009-09-08 Thread Robert H
On 6/25/08 4:36 AM, Justin Simoni wrote: > Thought people may be interested in this - this is the first Major (2 - > > 3) release of the program since 2000. Not to say I've been > lollygagging for that long or anythin'. The, "Advanced Email > Templating System" fancy-talk is HTML::Template in ac

[htmltmpl] Other modules...

2007-10-26 Thread Robert Hicks
Do any of you use the HTML::Template::Associate modules or other H::T helper type modules? Robert - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log

Re: [htmltmpl] [Announce] HTML::Template::Filter::TT2

2007-10-25 Thread Robert Hicks
> Hey that is pretty neat. :-) Robert - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a bro

Re: [htmltmpl] Filter Syntax

2007-07-27 Thread Robert Hicks
ckage.pm", I would have > > > > sub initialize_template_header { > my > ($self,$template,$r,$db,$site_settings,$user_session_data,$form_data) = @_; > > > } > > > > $self is correctly defined, but $template becomes the first object I > se

Re: [htmltmpl] die_on_missing_params

2007-06-01 Thread Robert Hicks
ms option) that I can turn on > some such warning system? (Perhaps there are some extensions to > HTML::Template that do this?) > > Any help is appreciated. > Maybe something as simple as a patch to allow: die_on_unset_vars => 1 Robert

[htmltmpl] calling javascript from the template

2007-04-25 Thread Robert Franks
not invoke the call to 'urchin.js' as am getting javascript error: 'urchintracker() not defined' Is this because the cgi script is loading the page and is therefore having trouble invoking the javascript? -- Robert Franks --

Re: [htmltmpl] Dot Plugin

2007-04-12 Thread Robert Hicks
I would be curious on how many HT'ers using the dot plugin and what they think of it as well. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share yo

Re: [htmltmpl] Base templates and sub templates

2007-03-10 Thread Robert Hicks
What is the recommended approuch and/or best practice for such a setup? > http://www.perl.com/pub/a/2007/02/02/htmltemplate-widgets.html http://www.perl.com/pub/a/2006/11/30/html-template-filters.html Both of those should give you some ideas. HTH, Robert -

Re: [htmltmpl] Comments

2007-03-07 Thread Robert Hicks
Is there anything funky about using filters with CGI::Application? Robert Mathew Robertson wrote: > Yep, that is the form - although you wont need to 'capture', eg: > > $$text_ref =~ s|.*?||gx; > > Mathew >> sub tmpl_remark { >> my $text_ref = shift;

Re: [htmltmpl] Comments

2007-03-07 Thread Robert Hicks
k { my $text_ref = shift; $$text_ref =~ s|(\w+)||gx; } # passed to the template filter => \&tmpl_remark; I did not know you could use a regex in a substitute (or I never thought about doing so). Of course, the regex above is bogus as I am just seeing if t

Re: [htmltmpl] Comments

2007-03-07 Thread Robert Hicks
Brad Choate wrote: > And be sure to specify 'die_on_bad_params' as 0 to use this technique. > > > On Mar 7, 2007, at 9:41 AM, Robert Hicks wrote: > Surely if it is in you don't need to set that. Robert

Re: [htmltmpl] Comments

2007-03-07 Thread Robert Hicks
Michael Peters wrote: > > Robert Hicks wrote: >> In TT I can create a comment like: >> >> [%# This is a comment %] >> >> The benefit to that is that comment gets stripped out when the template >> is processed (i.e you don't see it if you s

[htmltmpl] Comments

2007-03-07 Thread Robert Hicks
thing? Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash htt

Re: [htmltmpl] ELSE clause

2007-02-21 Thread Robert Hicks
Karen wrote: > On 2/21/07, *Robert Hicks* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > It isn't readily apparent from the pod but can you have more than one > clause? > > > If they're nested: > > > first

[htmltmpl] ELSE clause

2007-02-21 Thread Robert Hicks
It isn't readily apparent from the pod but can you have more than one clause? Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chanc

[htmltmpl] Questions on "file_cache"

2007-02-08 Thread Robert Hicks
I am in a CGI only environment and it seems that file_cache is an easy speed up. So I am wary of it. I understand the security aspects but is there anything else to worry about using it? Robert - Using Tomcat but need to

Re: [htmltmpl] LOOPING error [code included]

2006-12-06 Thread Robert Hicks
I found where to put the "die_on_bad_params". Seems a shame to have to do that. Robert - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the

Re: [htmltmpl] LOOPING error [code included]

2006-12-05 Thread Robert Hicks
Michael Peters wrote: > > Roger Burton West wrote: >> On Tue, Dec 05, 2006 at 09:20:40AM -0500, Robert Hicks wrote: >> >>> I have 3 separate loops using each of those. I am converting something >> >from TT->HT and this works fine in TT. Is there something a

[htmltmpl] LOOPING error [code included]

2006-12-05 Thread Robert Hicks
Error executing run mode 'display_employee_page': HTML::Template->output() : fatal error in loop output : HTML::Template : Attempt to set nonexistent parameter 'labor_category' - this parameter name doesn't match any declarations in the template file : (die_on_bad_params => 1) at C:/Perl/site/lib/H

[htmltmpl] naming keys in the

2006-10-10 Thread Robert Franks
MAIL PROTECTED];   So that in the html page I can use:     I know I can use in the loop, but to output "val89" that relies on me knowing that key89 exists, and its name.. How can I just loop through the hash printing out the keys and values, without knowing the keys? -- Robe

[htmltmpl] TMPL_XXX idea SCOPE

2005-03-02 Thread Robert Ferney
If you have a datastructure that looks like { foo=>1234, bar=>"iron", other=>{ color=>"orange", foo=>3.14, bar=>"brass" }, } it would be nice to have a way to access the elements of other ... I envision something like this would be a slight variation on the TMPL_LOOP with t

[htmltmpl] Re: eWeek Reviews Bricolage

2004-08-11 Thread Robert
too, actually! > > -sam > I noticed a couple of things from the site. I don't see it working on Windows using Apache? Is this possible? Also it seems to be MySQL specific. Did I read that wrong? Robert --- SF.Net email is sponsor

[htmltmpl] HTML::Template

2004-08-03 Thread Robert
Hi list,   I am testing HTML::Template with a sample script, I can run the script from command line which is working fine but when I run it from browser (http://webserver/cgi-bin/test1-cgi) I am getting the following error   Internal Server ErrorThe server encountered an internal error or misconfi

RE: [htmltmpl] print_to error

2004-05-06 Thread Robert Murray
Sorry, I completely missed that the first time for some reason (obviously). I appreciate you pointing it out again another way. My brain cell thanks you. Robert > -Original Message- > From: Timm Murray [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 12:28 PM >

RE: [htmltmpl] print_to error

2004-05-06 Thread Robert Murray
age itself. I don't understand why I'm getting it. I want it to go away. Robert > -Original Message- > From: Timm Murray [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 12:01 PM > To: Robert Murray; [EMAIL PROTECTED] > Subject: Re: [htmltmpl] print_to e

[htmltmpl] print_to error

2004-05-06 Thread Robert Murray
'debug'} ) { ... } return $t; } I've tried a few different things, but nothing worked. I looked at the archives regarding print_to and/or mod_perl but didn't find much that was relevant or that worked. The "tie WEBFILE, 'Apache'" thing gave me

RE: [htmltmpl] Problem with

2003-07-31 Thread Robert Murray
Alex, Thanks for your reply and taking the time. > Hello Robert, Karen and the rest, > > Robert, to me it appears that the problem indeed lies in $pwqref. That's > why I think Karen's idea is very good. > What I tried was to run as much of your code as possible, and I

[htmltmpl] Re: Problem with

2003-07-31 Thread Robert Murray
". join(', ', map("$_\=".$row{$_}, keys %row))) if $debug; > > (or something along those lines) so that you're getting what actually gets > set in the array, rather than what you're hoping got set in the array. Thanks

[htmltmpl] Problem with

2003-07-30 Thread Robert Murray
9), SEL=0 C=10, D=(sometext10), SEL=0 However, the result is just as if it was a blank form, with no 'selected' token in the select list. Doing a View Source just looks like: (sometext00) (sometext01) (sometext02) (sometext03) (sometext04) (sometext05) (so