Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在express中使用yog-swig #3

Open
carrytao opened this issue Oct 23, 2014 · 1 comment
Open

在express中使用yog-swig #3

carrytao opened this issue Oct 23, 2014 · 1 comment

Comments

@carrytao
Copy link

var express = require('express');
var app = express();
app.engine('tpl', require('yog-swig').renderFile);

不能将yog-swig设为默认模板引擎

@2betop
Copy link
Contributor

2betop commented Oct 23, 2014

yog-swig 只能被 yog-view 使用呢,不能直接作为 express 的 view engine. 请改用 yog-view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants