I actually didn't persist with this because I'm primarily working with React now, however I think Trystan's structure is pretty good. The primary thing to remember is that since JS is just static files then you can serve it as such from your web server, and just make sure that each of your templates is hooked up to those static files. How you structure it (MVC or whatever other design pattern) is up to you. Let me know how you get on though!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Tim,
I actually didn't persist with this because I'm primarily working with React now, however I think Trystan's structure is pretty good. The primary thing to remember is that since JS is just static files then you can serve it as such from your web server, and just make sure that each of your templates is hooked up to those static files. How you structure it (MVC or whatever other design pattern) is up to you. Let me know how you get on though!