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

建议提供一个yog.render的方法 #158

Open
sornon opened this issue Mar 22, 2017 · 2 comments
Open

建议提供一个yog.render的方法 #158

sornon opened this issue Mar 22, 2017 · 2 comments

Comments

@sornon
Copy link

sornon commented Mar 22, 2017

最近用yog写广告模板引擎,需要在一次响应中获取多个模板html,拼装成json一起输出
response例如:

@sornon
Copy link
Author

sornon commented Mar 22, 2017

{
status: 0,
msg:'',
tpls:[
'模板1',
'模板2',
'模板3',
]
}

@sornon
Copy link
Author

sornon commented Mar 22, 2017

希望提供yog.render只渲染不响应,直接返回html,res.render('xx.tpl',{},function(err,html){})这种加cb的方法不是最佳实现

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

1 participant