HTML :: Template,将html元素作为变量传递

时间:2013-09-16 22:22:49

标签: html perl templates syntax

是否可以将html元素作为tmp_var传递给html :: template?

例如:

use HTML::Template;

$template = HTML::Template->new(filename => 'index.html');
$template->param(INFORMATION => "$user, your account has been activated. You can login <a href='/path/to/site">here</a>')
print "Content-Type: text/html\n\n", $template->output;

我在尝试时遇到语法错误?有特殊标签还是不可能?

编辑: 谢谢!多么简单的错误......总是一样。

0 个答案:

没有答案