Prancer Plugin Xslate只读发布历史
Prancer::Plugin::Xslate:Prancer::Plugin::Xslate的只读发布历史
Prancer::Plugin::Xslate插件提供了对模板引擎的访问,允许用户在应用程序中使用配置的模板引擎和导出关键字。该插件支持在Prancer应用的配置文件中进行基本配置设置,并可以在运行时通过render
参数来配置所有选项。配置文件中的设置应以template
开头,所有相关选项都放在其下。例如:
template:
cache_dir: /path/to/cache
verbose: 2
所有在Text::Xslate中可以表示的配置选项都可以在应用的配置文件中进行设置。插件的使用非常简单:
use Prancer::Plugin::Xslate qw(render);
my $plugin = Prancer::Plugin::Xslate->load();
$plugin->add_module("D");
下载地址
用户评论