UNPKG

directlink-react

Version:

DirectLink is a library for building single-page web applications that makes the world easier for ASP.NET Core developers who use React.

19 lines 913 B
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"><% if (typeof(title) != "undefined") { %> <title>${ title }</title><% }; if (typeof metaTags !== 'undefined') { metaTags.forEach(tag => { %> ${ tag }<% })}; if (typeof headTags !== 'undefined') { headTags.forEach(tag => { %> ${ tag }<% })}; %> </head> <body><% if (typeof contentTags !== 'undefined') { contentTags.forEach(tag => { %> ${ tag }<% })}; %> ${ content } <script>/*<!--*/ directlink.renderApp(document.getElementById("content"), ${ data });/*-->*/ </script><% if (typeof bodyTags !== 'undefined') { bodyTags.forEach(tag => { %> ${ tag }<% })}; %> </body> </html>