script.ejs 180 B

12345678
  1. <% if (mode === 'static') { %>
  2. <!-- <%= filename %> -->
  3. <script>
  4. <%- assetContent(filename) %>
  5. </script>
  6. <% } else { %>
  7. <script src="<%= filename %>"></script>
  8. <% } %>