This repository has been archived by the owner on Jul 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
ssr spec #85
Comments
刚电话沟通,2个点 1、通用render实现,即faas对web目路下的文件提供http服务 |
static 作为 runtime 的扩展能力,用于将指定的目录内的文件进行 HTTP 托管。 参考serve-static、koa-static, |
i5ting
pushed a commit
to i5ting/midway-faas
that referenced
this issue
Mar 16, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
本规范主要定义 ssr 特性,组件写法、目录结构以及
f.yml
文件扩展的编写规范。扩展render配置
路由由f.yml的配置文件中,所以在f.yml增加render配置扩展,具体如下。
多组件扩展支持
多组件支持是基于bigpipe的方式,首先写入layout布局,然后处理多个组件的组合逻辑,最终res.end即可。另外,组件上如果只有fetch方法,没有render方法也是没有问题的。写法有2种,具体如下。
component的值是数组,即串行方式
component的值是对象,即并行方式
component支持无限嵌套,可以支持所有场景。
执行过程说明:
The text was updated successfully, but these errors were encountered: