名称
Plack :: 中间件 :: SetTitle
#概要
使用Plack::Builder;
我的 $ app = sub {return [200, ["Content-Type" => "text / html"], ["
你好
\n 世界! "]];};
builder {启用“SetTitle”,'title' =>'kichijojipm'; $ app;};
<title>
吉祥物 </title>
你好
世界!
描述
一个简单的实现,允许你在 html 模板的头部标题中插入一个字符串
也可以看看
评论0
最新资源