Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How to make dynamic result in META varriable in perl template toolkit

by technojosh (Priest)
on Jan 08, 2013 at 17:59 UTC ( #1012299=note: print w/ replies, xml ) Need Help??


in reply to How to make dynamic result in META varriable in perl template toolkit

You've only posted HTML. If this is really a problem of Perl inserting a variable title, consider below:

use strict; use warnings; my $pageTitle = 'variable title text'; print qq[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:/ + +/www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>$pageTitle</title> <meta name="generator" content="Ipad2 and iphone accesories" / +> <meta name="author" content="cloudsandcolors.com" /> ]; print qq[rest of properly formatted web page];
The above will allow you to insert variable text in the title, if that is all you want.

I suspect, however, you want something cooler, like dynamic update of <title> after page is already loaded. If I am wrong, my code above should help.


Comment on Re: How to make dynamic result in META varriable in perl template toolkit
Download Code
Re^2: How to make dynamic result in META varriable in perl template toolkit
by romy_mathew (Beadle) on Jan 09, 2013 at 02:49 UTC
    Thanks for the post, my page is loading in template toolkit like
    [%content wrapper html + layout%]

    my header and footer were loading after all the content were created so bringing the variable to template was good and it started working.

    Thank for your time

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-07-29 00:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls