On Wed, 06 Apr 2011 17:53:01 -0400, Michael Peters wrote
>
> Maybe a new "lexical_vars" option that will fall back to a parent-
> loop or top-level declared var if one doesn't exist in the current
> loop? That would be similar to the way vars work in Perl loops. Is
> that what you're asking for?
On Wed, 06 Apr 2011 15:21:13 -0400, Michael Peters wrote
> This email is an announcement of sorts for some work I've got
> planned for HTML::Template. I'm greatly in debt to Sam Tregar for
> this module and the use that I've gotten out it over the years.
>
> After talking with Sam, he's given me
On Tue, 1 Feb 2011 15:41:58 +, Roger Burton West wrote
> On Tue, Feb 01, 2011 at 05:14:36PM +0200, Offer Kaye wrote:
>
> >Is there any other solution?
>
> You've covered the two most usual approaches. Anything else will involve
> processing the string you get from the output() function.
$htm
I would love to see this feature. Supporting TMPL_IF and supporting TMPL_ELSE
but not supporting
TMPL_ELSIF seems very bizarre to me. Just sayin.
Mat, if you could share your patch that adds this feature that would be great.
Thanks,
Alex
> On 3 July 2010 01:52, Alan Laas wrote:
>
> > One thi
On Thu, 8 Apr 2010 17:20:36 -0400, Shawn Scott wrote
> Good Afternoon,
>
> I have been using HTML::Template for some time and have recently run
> into an starnge issue. I have the following code
>
> my @error = @_;
> my @error_loop = ();
> my %error_data;
> print header;
> foreach (@err
On Tue, 24 Nov 2009 21:24:30 -0500, Brad Baxter wrote
> Hi all,
>
> I once tried to implement nested templates with HTML::Template.
> Below is an example of what I came up with:
>
> 1 #!/usr/local/bin/perl
> 2
> 3 use strict;
> 4 use warnings;
> 5 use HTML::Template;
On Mon, 14 Apr 2008 23:55:27 +0100, Roger Burton West wrote
> On Mon, Apr 14, 2008 at 02:53:54PM -0800, Alex Teslik wrote:
>
> >HTML::Template : Attempt to set nonexistent parameter 'outer_var' - this
> >parameter name doesn't match any declarations in the temp
On Mon, 14 Apr 2008 18:03:53 +0100, Roger Burton West wrote
> On Mon, Apr 14, 2008 at 07:38:03AM -0800, Alex Teslik wrote:
>
> >$template->param(
> > OUTER_LOOP => [
> > { OU
Hello,
I am trying to perform an inner/outer loop with global_vars set, as shown
in the H:T man page:
# test.tmpl - from the man page --
OUTER:
INNER:
INSIDE OUT:
# test.pl --
#!/usr/bin/perl -w
use strict;
use HTML::Template 2.9;
my $temp
Yes, you are forgetting all the closing tags.
Another option would be to just eval the code as passed to a test HT object.
If it breaks HT you can catch it from the eval.
HTH,
Alex
On Thu, 27 Mar 2008 04:43:41 -0600, Justin Simoni wrote
> Here's one for everyone:
>
> I'm receiving data from $U
On Wed, 19 Mar 2008 22:24:36 -0500, Karen wrote
> 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 spec
gt;
> regards,
> Mathew
>
> Alex Teslik wrote:
> > Hello,
> >
> > I'm developing an app where there are some strings that have HTML entities
> > in them, such as:
> >
> > This is a "Tést"
> >
> > These strings need to go into a
Hello,
I'm developing an app where there are some strings that have HTML entities
in them, such as:
This is a "Tést"
These strings need to go into a template that is displayed in the iso-8859-1
character set. These strings need to be html escaped so that the quotes don't
break things. When I p
On Wed, 19 Dec 2007 14:02:59 +0100, Rhesa Rozendaal wrote
>
> There's a conflict between indenting your template for readability,
> and the amount of whitespace that ends up in the output.
>
Very well put!
I beat this horse more deader a while back (and someone before me beat it dead
too):
ht
My two guesses (I havn't tried any code):
- the template file contains both \n and \r courtesy of your text editor and
perhaps unbeknownst to you. The \r is getting expanded to an extra \n. Run the
template file through unix2dos or an equivalent command to eliminate the extra
line endings.
- the
my $ratingloop = [ map { {RATING => $_} } (1..$ratingmax) ];
or something like that (untested).
The effort seems pointless until the flexibility is used by the template
designer to do something special at each rating... or something else no one
has thought of yet. I'd go with the loop. TMPL_FOR p
On Wed, 8 Feb 2006 14:30:16 -0700 (GMT-07:00), Mark A. Fuller wrote
> I raised this issue a year or two ago and it wasn't well-received.
Hi Mark,
I completely agree that the filter option is an excellent feature, but I'm
not certain it is the right feature to use for stripping linefeeds. I am
Hello,
Is there a switch (feature request?) that will tell HTMLTMPL to replace a
TMPL followed by [\n\r]+ with nothing - even better replace the whole line if
the only thing on the line is a TMPL tag? Currently, the TMPL tags are
removed, but the \n or \r that trail them are not. The result is
18 matches
Mail list logo