Hi,
Yes, I've tried to ignore the routes.json only and as you said it didn't work unfortunately.
The problem with loading it inside the define function as you both suggested is that I need to return a function from the module that is dependent on routes.json and doing it this way I can only work with the promise of routes.json and not the data itself.
Meaning the everything I return with be inside a promise.
This it not a bad thing only a problem because the rest of the application isn't written with this in mind.
Hope you understand my issue with this.
I've succeeded with this once with require.js but I want to use Curl since I like it more but this makes me feel that it should exist a solution.
Embedding it in HTML isn't possible because the html isn't generated it is served as a static resource.
//Magnus