export default ({title="", meta="", links="", content="", initialState={}, env={}, base_path="" }) => `
<html>
    <head>
        <meta charset="utf-8">
        ${title}
        <meta name="viewport" content="width=device-width, initial-scale=1">
        ${meta}
        ${links}
        <link href="${base_path}/static/app.css" rel=stylesheet>

    </head>

    <body>
        <div id=app>${content}</div>
        <script>
            window.__INITIAL_STATE__ = ${JSON.stringify(initialState)};
            window.__APP_ENV_VARS__ = ${JSON.stringify(env)};
        </script>
        <script type=text/javascript src="${base_path}/static/app.js" charset=utf-8 async></script>
    </body>
</html>
`;

export default ({title="", meta="", links="", content="", initialState={}, env={}, base_path="" }) => `
<html>
    <head>
        <meta charset="utf-8">
        ${title}
        <meta name="viewport" content="width=device-width, initial-scale=1">
        ${meta}
        ${links}
        <link href="${base_path}/static/app.css" rel=stylesheet>

    </head>

    <body>
        <div id=app>${content}</div>
        <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=fetch&unknown=polyfill"></script>
        <script>
            window.__INITIAL_STATE__ = ${JSON.stringify(initialState)};
            window.__APP_ENV_VARS__ = ${JSON.stringify(env)};
        </script>
        <script type=text/javascript src="${base_path}/static/app.js" charset=utf-8 async></script>
    </body>
</html>
`;

Include fetch polyfill by default
Include fetch polyfill by default

Currently, fetch will be polyfilled for older browsers
using the polyfill.io service.
