问题描述
是否可以创建快速(节点)应用程序而无需诸如jade或ejs之类的模板引擎.我在大学里有一个大型的期末项目,我将使用node,express,socket.io,mongoDB和websockets.我也不想负担学习模板语言的负担!
Is it possible to create an express (node) application without the need for a template engine such as jade or ejs. I've got a large final year project at university and i'm going to be using node, express, socket.io, mongoDB and websockets. I don't want to burden myself with having to learn a templating language too!
默认快递使用玉石-t,--template添加模板支持(jade | ejs).默认=玉
By default express uses jade-t, --template add template support (jade|ejs). default=jade
推荐答案
是的.您可以只使用HTML.或者只是使用EJS. EJS是HTML的超集.
Yes it is. You can just use HTML. Or just use EJS. EJS is a superset of HTML.
您可以在一天内学习模板语言.确实可以为您提供帮助.去做就对了.值得.
You can learn a templating language in a day. It's really going to help you. Just do it. It's worth it.
这篇关于在没有模板引擎的情况下使用Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!