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
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
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
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
>
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
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
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
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
--
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
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
-
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;
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
'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
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
". 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
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
31 matches
Mail list logo