podlet:用于构建Podlet服务器的模块。 Podlet服务器提供页面片段

时间:2021-03-31 19:47:17
【文件属性】:
文件名称:podlet:用于构建Podlet服务器的模块。 Podlet服务器提供页面片段
文件大小:30KB
文件格式:ZIP
更新时间:2021-03-31 19:47:17
JavaScript @ podium / podlet 用于在微前端架构中构建页面片段服务器的模块。 请参阅网站。 这是用于构建Podlet服务器的模块。 Podlet服务器负责生成HTML片段,然后可以在服务器中使用它来组成完整HTML页面。 该模块可以与普通的node.js HTTP服务器或任何HTTP框架以及您选择的任何模板语言一起使用(如果愿意,也可以不使用)。 注意:基于连接兼容中间件的框架(例如 )在Podium中被视为第一类,因此该模块提供了.middleware()方法以方便使用。 为了使用其他HTTP框架编写Podlet服务器,还存在以下模块: [Fastify Podlet插件] [Koa Podlet插件] 安装 $ npm install @podium/podlet 入门 使用构建一个简单的Podlet服务器。 const express = require ( 'e
【文件预览】:
podlet-master
----.gitignore(139B)
----.eslintrc(310B)
----package.json(1KB)
----.npmrc(19B)
----LICENSE(1KB)
----CHANGELOG.md(6KB)
----release.config.js(678B)
----.github()
--------workflows()
----README.md(26KB)
----tests()
--------podlet.compatibility.js(2KB)
--------podlet.js(42KB)
----example()
--------multiple-podlet-server()
--------extending()
--------single-podlet-server()
----.eslintignore(18B)
----lib()
--------deprecations.js(1KB)
--------podlet.js(12KB)
----renovate.json(491B)
----.editorconfig(174B)
----.prettierrc(231B)
----index.d.ts(1KB)

网友评论