【文件属性】:
文件名称:Catalyst-View-ByCode:仅使用 Perl 进行简单模板
文件大小:47KB
文件格式:ZIP
更新时间:2021-06-01 06:49:21
Perl
Catalyst::View::ByCode
仅使用 Perl(和花哨的语法)的简单模板。
一个简单的模板可能如下所示:
template {
html {
head {
title { stash->{title} };
load Js => 'site.js';
load Css => 'site.css';
};
body {
div header.noprint {
ul.topnav {
li { 'home' };
li { 'surprise' };
};
【文件预览】:
Catalyst-View-ByCode-master
----.travis.yml(708B)
----t()
--------210-renderer-markup.t(9KB)
--------300-view.t(6KB)
--------500-integration.t(929B)
--------900-bug_block.t(1KB)
--------root()
--------910-bug-html_formfu.t(1KB)
--------lib()
--------400-app.t(695B)
--------200-renderer.t(5KB)
----MANIFEST.SKIP(50B)
----TODO.txt(3KB)
----benchmark_script()
--------compare_renderers.pl(6KB)
--------benchmark.pl(2KB)
--------match_benchmark.pl(615B)
----.gitignore(131B)
----lib()
--------Catalyst()
----README.md(762B)
----Changes(7KB)
----dist.ini(809B)