模板工具箱的“仅编译”(以其Perl编译版本为准)模板的最佳方法是什么?
到目前为止,我已经对它们调用-> process,但是由于它确实执行了模板,因此这远非理想。
理想情况下,我想将模板“编译”到其Perl版本,而不对其进行评估。
正如在CPAN上记录的那样,可能是这样的:
my $tt = Template->new;
my $templateFile = "something.html";
my $compiledTemplate = $tt->template($templateFile);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句