I'm experimenting with the MVC Razor approach and was trying to figure out how I set up a local webapi or dynamic page that achieves the same.
What I can see is that with Xamarin I need to render the razor view and pass the HTML to the webview.
Now traditionally this view might call out to a webserver using AJAX to get some json and render it.
I'm now using SQL lite on the mobile device but want to achieve the same, although I don't need a full web request.
One approach could be for me to write out a json file to the device before I push the HTML to the webview and the view can then reference this. This seems a bit clunky so what is the best approach?