From c5fc1df41e66b0a5e1093beda48b40032c1d0b9a Mon Sep 17 00:00:00 2001 From: evalor Date: Thu, 23 May 2019 19:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 06cd58d..af548de 100644 --- a/README.md +++ b/README.md @@ -116,4 +116,13 @@ $http->on("request", function (\Swoole\Http\Request $request, \Swoole\Http\Respo }); $render->attachServer($http); $http->start(); +``` + +### 启动测试服务器 + +代码包内置了一个小型的测试服务器,在tests目录下,支持smarty、plates、blade、think四种引擎的快速测试,使用下方代码启动,访问 http://127.0.0.1:9501 即可查看输出,对应的模板文件在test/TemplateViews目录下,可以修改这些模板来测试功能 + +```bash +cd tests +php testServer.php -e 模板引擎名称 ``` \ No newline at end of file