我有以下模板
[% DEFAULT label = 'null' %]
order: '[% order %]',
name: '[% name %]',
product:'[% product %]',
label : '[% label %]'
包含在模板 my.tt 檔案中
在 Perl 我有以下配置:
my $template = Template->new();
open(my $fh, '>:raw', \$report);
$template->process('my.tt', \
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/533315.html
標籤:perl模板工具包
