How do I render an html file in javascript?

前端 未结 3 982
半阙折子戏
半阙折子戏 2021-02-15 17:07

OK, I am using javascript sever side, including node.js. Because of performance issues, we have decided to move one page to being rendered server-side, not client side, so the s

相关标签:
3条回答
  • 2021-02-15 17:34

    This is a simple example that does server-side templating (no express): https://github.com/FissionCat/handlebars-node-server-example

    This is an example that serves html, js, css and an mp3 (but doesn't use express or any templating): https://github.com/FissionCat/Hue-Disco

    0 讨论(0)
  • 2021-02-15 17:36

    There's some pretty useful documentation found here: http://www.hongkiat.com/blog/node-js-server-side-javascript/

    Like you said, avoiding lots of rewriting is a bonus.

    0 讨论(0)
  • 2021-02-15 17:52

    Might be the information provided in the article be of some help.

    0 讨论(0)
提交回复
热议问题