【发布时间】:2015-05-16 09:19:35
【问题描述】:
如何在 express.js 中包含我的 html/js/css 文件? 有什么办法可以管理模板吗?
我只想使用 HTML(没有玉)。
<head>
<DATA>
</head>
<header>
<?php include('includes/header.html'); ?>
</header>
<topnavigation>
<?php include('top_navigation/header.html'); ?>
</topnavigation>
<content>
<?php include('website/header.html'); ?>
</content>
<footer>
<?php include('includes/content.html'); ?>
</footer>
【问题讨论】:
-
您是否尝试过查看一些示例应用程序?
-
告诉我们您尝试了什么以及为什么它不能满足您的需求。这表明您已经花时间尝试帮助自己,它使我们免于重复明显的答案,最重要的是它可以帮助您获得更具体和相关的答案!另见how to ask
标签: jquery node.js express socket.io pug