Questions tagged [perl-html-template]

HTML::Template and HTML::Template::Pro are Perl modules that provide a template language for HTML generation.

The documentation for HTML::Template and the documentation for HTML::Template::Pro are available on CPAN. HTML::Template and HTML::Template::Pro mainly share the same syntax.

11 questions
7
votes
1 answer

Is there a Catalyst tutorial that uses HTML::Template instead of TT?

I've been looking through a couple of Catalyst tutorials and they all tend to use Template Toolkit instead of HTML::Template. I've spent a lot of time with HTML::Template and I like it, and while I can see the power of TT, I don't know it, and I…
AmbroseChapel
  • 11,957
  • 7
  • 46
  • 68
3
votes
3 answers

Perl: Parentheses vs Brackets for array definition, why is one considered a scalar?

I was following this tutorial on the HTML::Template module for Perl. Here's the template:
Gustavo Puma
  • 993
  • 12
  • 27
2
votes
1 answer

CGI::Application param() not setting

I have a piece of code that uses CGI::Application as its base, but something is not working correctly. When I try to set something via $Template->param() it seemingly does not set. $Template is equal to $self->load_tmpl($template); And the piece I…
Sismetic
  • 227
  • 4
  • 16
1
vote
1 answer

Perl nested TMPL_LOOP in HTML::Template

I have a database from which I need to get some values. My table looks like this column: examroll, studentname, reporttitle, marks1, marks2, marks3, total values: 1, ABC, xyz, 5, 4, 6, 15 values: 1, …
Prabhu
  • 5,296
  • 4
  • 37
  • 45
1
vote
1 answer

HTML::Template::Pro: do something on second run of a loop

I am using HTML::Template::Pro in my perl application. I am displaying HTML elements in a loop and I want to show something after the second element of the loop. I added the loop_context_vars in my HTML::Template::Pro initialization, getting access…
j0nes
  • 8,041
  • 3
  • 37
  • 40
0
votes
1 answer

"__LAST__" (in tmpl_if) not always works in Perl HTML::Template

I have the following line in my tmpl file:
When refreshing the page it switches between both displays (sometimes refresh…
Mike
  • 1,007
  • 2
  • 16
  • 33
0
votes
1 answer

Rose::DB::Object::Manager and HTML Template

I am using Rose::DB::Object::Manager (get/iterate methods) to source data from a database and HTML::Template for reporting. The HTML report requires a TMPL_LOOP to display entries in a database. My question is how do I create an array reference…
user621092
  • 51
  • 1
  • 6
0
votes
1 answer

Perl CGI using HTML::Template

I would like to make use of the HTML::Template module but somehow I can't set it up to work properly. Here is a very simple representative code I'm testing on: use strict; use warnings; use CGI; use HTML::Template; my $test = new CGI; my $tmpl =…
N. Maks
  • 539
  • 3
  • 15
0
votes
1 answer

Iframe visible in page source

I have such code : The variable is PHP URL with pdf converted to text and embed in perl generated HTML using that iframe. For SEO reasons i need to make it visible in page…
0
votes
2 answers

HTML-Template - Array of Hash

I have two Array of Hashes: The first contains values for a current time interval and the second contains values for a previous time interval. @AoHcurrent= ( { node => "ABC", link => "DEF", time => "10:00", value => "100", }, {…
hoosain.madhi
  • 77
  • 2
  • 2
  • 9
-1
votes
2 answers

Using HTML::Template to add a tag

I'm using CGI and HTML::Template. I need to add below tag in all the templates which contain
tag (tag should be added inside tag). I don't want to edit all the template files…
Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133
Language Description
-