None of my functions work inside of EJS inside the <% %> syntax. How do I do onclick events, functions and all that stuff inside EJS? Is it not possible?
Asked
Active
Viewed 13 times
0
-
`` is for server-side JS. Client-side JS is written as in a normal HTML/JS file. – Dave Newton Feb 09 '22 at 21:26
-
How do you serve the client-side JS files? – Essmann Feb 09 '22 at 21:29
-
They're just files; same way any other static content is served? – Dave Newton Feb 09 '22 at 21:32