Reputation: 2863
I've refactored my web application into one page (single page app). I'm just wanting some advice on whether serving up the one page index.cshtml
with a controller is overkill (I'm not using any razor code that can't be substituted for normal html/js). Should I just change it to be a index.html
page and just serve it as normal?
I'm sure it's only a minor thing, but want to know what the best practice is here.
Upvotes: 0
Views: 489
Reputation: 41
Absolutely no need for MVC and all that BS.JS huge files when you're building a single page portfolio. Just create a new HTML file.
Upvotes: 0
Reputation: 7553
No, it's not an overkill.
Just split your code into 3 parts: logics, HTTP processing, view.
It will be MVC even if all 3 parts are in 1 file.
Upvotes: 1