Plack already has many useful applications that you may want to integrate with your web portal.
Plack 中有很多有用的应用程序,您肯定想将它们集成到您的Web 门户中。
There are many Plack: : Apps and Plack: : Middleware modules available to help with common tasks.
有很多的Plack:Apps和Plack:Middleware模块可以帮助我们完成常见任务。
Plack handles all of these issues and provides a simplified environment for building web applications.
Plack能够解决这些问题,而且提供了一个简化的环境来构建Web应用程序。
This installs the core Plack modules that are required to build web applications quickly and easily (see Listing 4 below).
以上步骤就是快速方便地构建Web应用程序所需的核心Plack模块(参见下方清单4)。
Plack sits between your code (whether you use a web framework or not) and the web server (for example, Apache, Starman, FCGI).
Plack位于代码(无论是否使用框架)和Web服务器(例如,Apache、Starman和FCGI)之间。
At this stage, it is probably worth investigating one of the many web frameworks that offer PSGI support and can be run with Plack.
到此为止,深入研究一下提供PSGI支持并能使用 Plack的众多Web框架之一也许是值得的。
In listing 6, for example, we are using Plack: : App: : directory to get a directory listing and to serve it's content as static files.
例如,在清单6中,我们使用Plack:App:Directory来列出目录,并将其内容用作静态文件。
On top of this we want to have a nice looking page when there is a 404 (file not found); for this we will use Plack: : Middleware: : ErrorDocument.
在此之前,我们想在出现错误404(文件未找到)时,会显示一个好看的页面;我们使用Plack:Middleware:ErrorDocument来完成这项任务。
Plack doesn't eliminate the need to worry about these elements, but it does make the process of building advanced web applications system much easier.
Plack不能消除您对这些因素的担忧,但它能让构建先进的Web应用程序系统的过程变得轻松很多。
Plack handles all of the complexities between your web server and your Perl application, both simplifying and protecting your application and server.
Plack可以处理Web服务器与Perl应用程序之间的复杂性,简化并保护您的应用程序和服务器。
Images and other static content should not go through TT, so we are going to configure Plack: : Middleware: : static to serve files directly with specific extensions.
图像和其他静态内容不会通过TT,因此我们会配置Plack: Middleware:Static,通过特定的扩展名直接提供文件。
Plack, a part-time bouncer who wanted to become a private detective, was a first aid expert and the pair believed he would be able to stem the bleeding before calling for help.
死者帕莱克是一名想当私家侦探的兼职保镖,他同时是一名急救专家。克莱昂声称,他相信帕莱克可以在急救人员到来之前自行止血。
Plack, a part-time bouncer who wanted to become a private detective, was a first aid expert and the pair believed he would be able to stem the bleeding before calling for help.
死者帕莱克是一名想当私家侦探的兼职保镖,他同时是一名急救专家。克莱昂声称,他相信帕莱克可以在急救人员到来之前自行止血。
应用推荐