Server-side prerendering

This sample demonstrates how you can invoke a JavaScript module that contains prerendering logic for a Single-Page Application framework.

Your prerendering boot function will receive parameters that describe the page being rendered and any data supplied by the .NET code. The return value should be a promise that resolves with data to be injected into the page, such as the rendered HTML and any global data that should be made available to client-side code.

@Html.Raw(ViewData["PrerenderedHtml"])