English 中文(简体)
采用“ no”的超文本
原标题:Best pratice to insert string into HTML file using node
  • 时间:2012-05-12 12:21:34
  •  标签:
  • node.js

附录一有庞大的超文本,在几个地方,我想插入插图,内容在开办期间确定。 如果我只允许提供静态的超文本处理,那么我如何解决这一问题。

最佳回答

您可使用JADE templating引擎。 如果时间不变,你就可以将模板汇编到你的公共名录中,并为之提供一个框架,如。 ExpressJS

问题回答

If you already have this HTML file, I would suggest use of EJS.

将任何东西改写给(jade)只是太多的工作。





相关问题
How to make Sequelize use singular table names

I have an model called User but Sequelize looks for the table USERS whenever I am trying to save in the DB. Does anyone know how to set Sequelize to use singular table names? Thanks.

What is Node.js? [closed]

I don t fully get what Node.js is all about. Maybe it s because I am mainly a web based business application developer. What is it and what is the use of it? My understanding so far is that: The ...

Clientside going serverside with node.js

I`ve been looking for a serverside language for some time, and python got my attention somewhat. But as I already know and love javascript, I now want learn to code on the server with js and node.js. ...

Can I use jQuery with Node.js?

Is it possible to use jQuery selectors/DOM manipulation on the server-side using Node.js?

How do I escape a string for a shell command in node?

In nodejs, the only way to execute external commands is via sys.exec(cmd). I d like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a ...

热门标签