没有合适的资源?快使用搜索试试~ 我知道了~
swiftjs-2:第二次尝试为 expressjs 创建 MVC 库
共14个文件
js:5个
tt:4个
swift:1个
需积分: 5 0 下载量 181 浏览量
2021-07-11
15:23:14
上传
评论
收藏 9KB ZIP 举报
温馨提示
swiftjs-2 这是我为 expressjs 创建 MVC 库的第二次尝试,这是对原始框架的完全重写,删除了许多不必要的功能,以实现简单性和灵活性。 这个新框架的目标是在不牺牲流程灵活性的情况下为 nodejs 应用程序提供一个结构。 如何使用 swift 2 中的控制器只是导出路由的 NodeJS 模块。 module . exports = { root : '/' , //root is optional, if not set, root will be the name of the controller routes : { // 'get': [someMiddlewhere, index], //call some middleware before calling index action. 'get /<route
资源推荐
资源详情
资源评论
收起资源包目录
swiftjs-2-master.zip (14个子文件)
swiftjs-2-master
.gitignore 32B
templates
view.ejs.tt 85B
model.js.tt 154B
server.js.tt 778B
controller.js.tt 492B
package.json 886B
bin
swift 3KB
index.js 3KB
README.md 1KB
example
app
models
Test.js 106B
views
home
index.ejs 139B
controllers
api
test.js 162B
home.js 172B
index.js 816B
共 14 条
- 1
资源评论
蒋叶婷
- 粉丝: 34
- 资源: 4578
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功