How do I render an html file in javascript?

前端 未结 3 968
半阙折子戏
半阙折子戏 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条回答
  •  梦毁少年i
    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

提交回复
热议问题