Nuxt/lib/views/app.html

22 lines
674 B
HTML
Raw Normal View History

2016-11-07 01:34:58 +00:00
<% const {
2016-11-14 22:59:54 +00:00
title, htmlAttrs, bodyAttrs, link, style, script, noscript, meta
} = context.meta.inject() %><!DOCTYPE html>
<html n-head-ssr ${htmlAttrs.text()}>
2016-11-07 01:34:58 +00:00
<head>
2016-11-14 22:59:54 +00:00
${meta.text()}
${title.text()}
${link.text()}
${style.text()}
${script.text()}
${noscript.text()}
<base href="<%= baseUrl %>">
<% if (!dev) { %><link rel="stylesheet" href="<%= files.css %>"><% } %>
2016-11-07 01:34:58 +00:00
</head>
2016-11-14 22:59:54 +00:00
<body ${bodyAttrs.text()}>
2016-11-07 01:34:58 +00:00
<%= 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>