mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.7k stars 841 forks source link

Is there a way to include ejs files in memory rather than ejs written to disk? #660

Closed ryuhangyeong closed 2 years ago

ryuhangyeong commented 2 years ago

Is there a way to include ejs files in memory rather than ejs written to disk?

issue

I use HtmlWebpackPlugins in webpack-dev-middleware to generate html and ejs templates in express.js. But there is a problem. The assets of webpack-dev-middleware exist in memory, and the ejs include statement reads files written from disk. In this case, how can I solve my problem?