Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^3: Doubt about Template Toolkit

by Bod (Priest)
on Jul 15, 2022 at 22:21 UTC ( #11145540=note: print w/replies, xml ) Need Help??

in reply to Re^2: Doubt about Template Toolkit
in thread Doubt about Template Toolkit

The idea with all of this, is when this cgi is executed, every processed url appears in a new tab

Sending multiple HTML documents to the browser will not achieve this...

I think I would approach this by adding all the URLs into an array and passing a reference to the array into Template to process a single template file. In the template file, have a some Javascript and a FOREACH loop that adds the Javascript calls to for each URL.

Rather than processing the template file multiple times within Perl, assemble the data in Perl and pass that once to the template file and let that do the iterations.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145540]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2023-06-04 21:08 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (22 votes). Check out past polls.