Skip to content

Commit

Permalink
更新README
Browse files Browse the repository at this point in the history
  • Loading branch information
evalor committed May 23, 2019
1 parent 25a32a6 commit c5fc1df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 模板引擎名称
```

0 comments on commit c5fc1df

Please sign in to comment.