I"ve used ejs
, and then I searched for articles about how to extract public components.
what I want to do is in index.ejs
, the template goes like this:
<html>
<head>...</head>
<body>
<% include header %>
xxxx
<% include footer %>
</body>
</html>
then suppose I have a.html
and b.html
pages, and then want to configure webpack
, I can only write in the a.html
and b.html
pages that need to be inserted into the xxxx location of index.ejs
.