I am trying to convert one of my current MVC sites to use requirejs ..... I was able to get things to work .... but what I did looks messy.
Everything I found on the Internet with respect to requirejs really focuses on single page applications (like John Papa Code Camper] ... HOWEVER, in my case it is a multi-page application ..... and from what I see The methodology "main.js" is really useful only for SPA.
I read and downloaded the Stephan Prodan implementation of the RequireJS side:
http://www.stefanprodan.eu/2012/09/intro-requirejs-for-asp-net-mvc/
I'm not sure if this is the model that works best ... Does anyone have good models (examples) of what they used to use requirejs in a multi-page script for ASP.NET MVC?
Or ... do you think Stefan's approach is enough?
I am stuck and apparently cannot decide and press the trigger anyway.
source
share