Nuxt/lib/views/app.html
2016-11-11 00:01:36 +01:00

29 lines
814 B
HTML

<% const {
title,
htmlAttrs,
bodyAttrs,
meta
} = context.meta.inject()
%><!DOCTYPE html data-vue-meta-server-rendered>
<html>
<head>
${title.toString()}
<% if (baseUrl) { %><base href="<%= baseUrl %>"><% } %>
<% if (!dev) { %><link rel="stylesheet" href="<%= files.css %>"><% } %>
<% if (redirected) { %>
<meta http-equiv="refresh" content="0; url=<%= redirected %>" />
<script type="text/javascript">
window.location.href = '<%= redirected %>'
</script>
<% } %>
</head>
<body>
<% if (!redirected) { %>
<%= APP %>
<script type="text/javascript" defer>window.__NUXT__=<%= serialize(context.nuxt) %></script>
<script src="<%= files.vendor %>" defer></script>
<script src="<%= files.app %>" defer></script>
<% } %>
</body>
</html>