mde / ejs

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

Multiple javascript files not working into the single page ejs file #651

Closed Sharif-Minhaz closed 2 years ago

Sharif-Minhaz commented 2 years ago

Hi, I'm facing an issue. In my case,

<script src="/dist/js/owl.carousel.min.js"></script>
<script src="/scripts/main.js"></script>

Suppose, I have 2 scripts but the ejs only accept the first script file and ignore the second javascript file unless the other file is any kind of CDN src. But if I write the inline javascript code inside the ejs file with then it's works. and also if I connect a partial with a javascript file then both file works. But it somehow does not work with multiple js files in a single page ejs file. what is the problem? I don't understand. 😥