At 03:25 PM 5/4/2005, joseph canton wrote:
Has anyone used HTML::Template with modperl or Apache::ASP?
Yes. In fact, many of the caching options are only good under an
environment like mod_perl.
Timm Murray
IT Web Asst.
ASA-CSSA-SSSA
677 S Segoe Rd.
Madison, WI 53711-1086
Phone: 608-268-4944
t;use HTML::Template::Dumper" and set an
output format) to run the tests--these should be significantly less than
modifications to reinvent what HTML::Template::Dumper already does.
Timm Murray
IT Web Asst.
ASA-CSSA-SSSA
677 S Segoe Rd.
Madison, WI 53711-1086
Phone: 608-268-4944
Fax: 608-273-2021
At 02:25 PM 11/9/2004, Brad Cathey wrote:
Hello folks,
I've been using HTML::Template a thousand times over the past year and never
had a page just not output.
http://www.cicsnorthtown.org/cgi-bin/facultyadmin.pl?funct=menu
Check the source code and note it just renders ""
Actually, it outputs not
At 09:02 AM 6/4/04 +1000, Mathew Robertson wrote:
<>
> Google PageRank is very good at searching a broad sample of sites. It's
> not so good for individual sites.
You are kidding right? The algorithms the Google use, already take into
account common content on multiple pages. OpenOffice.org use
At 11:30 AM 6/3/04 -0700, Mark Fuller wrote:
<>
A good indexer would add weight to words that appear in headers/footers
which also appear in title, meta keyword/description, headings, and
expository content (paragraphs, list items, data terms and definitions).
Conversely, reduce weight for words ap
At 09:38 AM 6/3/04 +1000, Mathew Robertson wrote:
> > > Inevitably, there will be certain pages using TMPL_INCLUDE tags. I
imagine
> > > that most of these will contain data that will not want to be
searched for,
> > > such as footers, and therefore my filter program can simply ignore
> > > them
At 11:34 AM 6/2/04 -0700, Bill Moseley wrote:
On Wed, Jun 02, 2004 at 12:43:00PM -0500, Timm Murray wrote:
> At 09:45 AM 6/2/04 -0700, Bill Moseley wrote:
> <>
> >> I don't think either solution is particularly difficult to implement,
> >> but scanning the conte
At 01:10 PM 6/2/04 -0400, Sam Tregar wrote:
On Wed, 2 Jun 2004, Timm Murray wrote:
> I have a project which involves changing our current pages using SSI
> #includes into using an HTML::Template-based solution instead. The
> question of how to search these templates came up, and I
At 09:45 AM 6/2/04 -0700, Bill Moseley wrote:
<>
> I don't think either solution is particularly difficult to implement,
> but scanning the content files directly also lets us have an easier
> time analyzing the structure of the document.
All the server does is supply the content. Analyzing the co
At 10:26 PM 6/2/04 +0530, Philip Tellis wrote:
Sometime Today, michael assembled some asciibets to say:
> I was wanting to use Class::DBI to Model my data and H::T to View it.
> When I do this I end up with a lot of code that looks like this
>
> $tmpl->param(
> ObjAtt1 => $obj->att1,
> Ob
At 09:22 AM 6/2/04 -0700, Bill Moseley wrote:
On Wed, Jun 02, 2004 at 11:08:25AM -0500, Timm Murray wrote:
> At 09:01 AM 6/2/04 -0700, Bill Moseley wrote:
> <>
> >Spider your content instead. Does htdig have anything like
> > ?
>
> We discussed spidering and m
I've seen ideas like this suggested many times before, and it should be
done. Just needs someone to sit down and write the code :)
At 10:29 AM 6/2/04 -0500, michael wrote:
Since others are in the mood for RFCing, here's something that I was thinking
about implementing for myself and I just wante
At 09:01 AM 6/2/04 -0700, Bill Moseley wrote:
<>
Spider your content instead. Does htdig have anything like
?
We discussed spidering and my boss is against the idea. I personally would
prefer not to do it if we can get away with it.
---
This
s of course a question whether you really want to index
templates which are metadata of your website or its content.
See my reply to Phillip.
* Timm Murray <[EMAIL PROTECTED]> [June 02 2004, 17:55]:
> I have a project which involves changing our current pages using SSI
> #includes i
At 08:39 PM 6/2/04 +0530, Philip Tellis wrote:
Sometime Today, Timm Murray assembled some asciibets to say:
> I have a project which involves changing our current pages using SSI
> #includes into using an HTML::Template-based solution instead. The
> question of how to search these templ
I have a project which involves changing our current pages using SSI
#includes into using an HTML::Template-based solution instead. The
question of how to search these templates came up, and I've suggested using
htdig:// with a filter program that will convert the templates into text
for index
Your choices are
to either keep the print_to call out of the print statement, or shut off
warnings.
Robert
> -Original Message-----
> From: Timm Murray [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 06, 2004 12:01 PM
> To: Robert Murray; [EMAIL PROTECTED]
> Subject: Re: [htmltmp
At 11:49 AM 5/6/04 -0700, Robert Murray wrote:
Now the thing is, my code WORKS FINE. It creates the page, I can email it,
click on the link in the email and get to it, etc. It's just bugs me that
when I run the program, I get:
Use of uninitialized value in print at make_renewals.pl line 263
At 09:21 AM 4/14/04 +1000, Mathew Robertson wrote:
> > I can get the results to print directly with this code:
> >
> > $sth = $dbh->prepare ("SELECT * FROM $working_tbl WHERE first='one'
> > ORDER BY Location");
> > $sth->execute ();
> > while ( my $hash_ref = $sth->fetchrow_hashref ) {
> >
At 02:35 PM 2/24/04 +1100, Mathew Robertson wrote:
Hi H::T users,
Just a little while ago, I released a 'H::T filters module'. One
suggestion was that I use qr// to pre-compile the regular expressions.
Has this technique been investigated for use in H::T ?Likewise has the
use of 'o' modif
You set it up just like a TMPL_VAR. If the value of that variable is true
(according to Perl's definition of truth), then that section is run. It's
just like doing:
if($var) {
# Do something
}
else {
# Do something else
}
Except HTML::Template (in its basic form) doesn't provide a way
The 'print_to' parameter takes an open filehandle. You have to open the
file first on your own for writing and then pass the file handle in. For
instance, if you opened 'test.tmpl' under the filehandle 'FH', then you
pass '$template->output( print_to => *FH );'
At 10:56 AM 2/16/04 -0800, Kevi
At 10:32 AM 2/11/04 -0500, C Hagstrom wrote:
<>
And in the template:
">
">
But the above is really ugly, and I gotta believe
there's a better approach (that I'm too dense to recognize)
Yeah, I know, it seems like there should be a better solution. In fact,
due to the limitations of HTML, there a
At 09:50 AM 2/11/04 +1100, Mathew Robertson wrote:
Hi list,
A little while ago, I asked people for implementations of various filters
that are used, so that we could create a module which contains generic
filters. Well here it is Attached is a module which implements some
generic filters.
At 07:08 AM 1/9/04 -0800, LDT wrote:
<>
my $cell_fmt = <
align="right" style="cursor:pointer;cursor:hand;"
title="Click to drill down"
onmouseover="style.background='#FF';"
onmouseout ="style.background='';">
EOL
;
$tmpl_main =
;, using a HERE doc, and I get pretty much
the same error each time. So, obviously, I'm using it incorrectly but I
don't understand why. Any ideas? If you're willing, would you give me a
dumbed down version? ;-)
Thanks!
Lori Thompson
Timm Murray <[EMAIL PROTECTED]> wrote:
A
At 02:14 PM 1/8/04 -0800, LDT wrote:
<>
Am I missing something, or am I trying to do something naughty?
HTML::Template won't expand entries that were placed into
another . What you probably want is a
. Alternatively, you can create another HTML::Template
object out of the data inlined in your
At 02:20 PM 1/7/04 -0500, Todd Chapman wrote:
Using the method described below, do I have to set
the params in the appropriate teamplates, or can I
do the include first and set all the params in one
template? The reason I ask is that the params all
come from one database table, and I don't want
to
At 01:24 PM 1/7/04 -0500, Todd Chapman wrote:
I would like to pass a parameter to a template that
would be used to include another template. This
syntax does not seem to be valid:
How can I accomplish this?
<>
I use the output from one template to feed into another:
my $tmpl1 = HTML::Temp
HTML::Template doesn't like doing any sort of logic beyond simple if
statements and loops. You can do it with HTML::Template::Expr, or
(preferably) you can calculate the totals in Perl and fill in the template
with those values.
At 05:27 AM 12/31/03 -0800, LDT wrote:
This is my first project u
At 05:55 PM 12/10/03 +1100, Mathew Robertson wrote:
<>
In a template you may do something like:
Normally your code would look something like:
if (length $user->name->first or $user->name->last ) {
$tmpl->param ('user' => 1);
$tmpl->param ('use
At 01:40 PM 12/9/03 -0500, Sam Tregar wrote:
On Tue, 9 Dec 2003, Mathew Robertson wrote:
> - TMPL_ELSIF tag, eg
I've certainly had a lot of requests for this feature, but I'm still
reluctant to include it. I think it would only enable people to build
even more complex logic into their templates
HTML::Template doesn't really have "tags", it just looks that way. You
could make the tags look like comments instead:
At 02:27 PM 12/8/03 +0100, paul POULAIN wrote:
Hi,
For instance, h::t tags are not html valid is NOT
valid. It should be : .
Same thing for :
...
...
would be valid.
I
<>
The first two lines of my cgi script are:
#!/usr/bin/perl -w
use strict;
When you say to "use -w", is that sufficient?
well, no... I really meant what you already have
#/usr/bin/perl -w
use strict;
you can also "use diagnostics" or splain if you really want a chatty system.
What about if it'
<>
# attempt 1
my @test = ();
push @test { name=>"foo",value=>"blitz" };
# Gets "Global symbol "%test" requires explicit package name at ...[push
line]" !?!?! there is no %test.
You forgot a comma, so Perl interpreted it as something like this:
push @test{'name','foo',value','blitz'};
Adding a
e at my employer (the American Society of
Agronomy, www.agronomy.org), who graciously allowed it to be made into a
public release.
Thanks,
Timm Murray
---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help yo
36 matches
Mail list logo