The above will allow you to insert variable text in the title, if that is all you want.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];
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.
In reply to Re: How to make dynamic result in META varriable in perl template toolkit
by technojosh
in thread How to make dynamic result in META varriable in perl template toolkit
by romy_mathew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |