javascript - Coffeekup 作为 Express 3 的 View 引擎

标签 javascript node.js coffeescript express coffeekup

我正在尝试使用 Coffeekup 作为我的默认模板

app.set 'view engine', 'coffee'
app.register '.coffee', coffeekup.adapters.express

除了 app.register 不是一个看起来像的函数。迁移是什么?

最佳答案

coffeekup 已更改为“coffeecup”

点击此链接:https://github.com/gradus/coffeecup

关于javascript - Coffeekup 作为 Express 3 的 View 引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11270249/

相关文章:

javascript - 如何验证数组中的对象?

javascript - 在 Ember 中全局渲染 View

coffeescript - CoffeeScript (eco) 模板中的 Grunt 图像路径

javascript - requestAnimationFrame 不等待下一帧

javascript - 在 javascript Webview 中调用 Intent

javascript - 让 forEach 等待回调

javascript - 从 Backbone.Collection 的末尾移除/删除模型?

javascript - React JS 中的列表和键 : TypeError: Cannot read property 'map' of undefined

javascript - 使用 Gulp 上传资源到 s3

node.js - 连接到单独的 docker 容器 (AWS ECS) 中的 MongoDB