ASP.NET MVC - The Best Solution For RequireJS Multi-Page Applications

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.

+5
source share
1 answer

Try to find a guide for multi-purpose applications here: fooobar.com/questions/132946 / ... .

This answer refers to an example of a multi-page application from the author of requirejs: https://github.com/requirejs/example-multipage

+3
source

All Articles