import template from './template'; // Template function for rendering the boilerplate html for cordova export const headTemplate = ({ meteorRuntimeConfig, rootUrlPathPrefix, inlineScriptsAllowed, css, js, additionalStaticJs, htmlAttributes, bundledJsCssUrlRewriteHook, head, dynamicHead, }) => [ '', '
', ' ', ' ', ' ', ' ', ' ', // We are explicitly not using bundledJsCssUrlRewriteHook: in cordova we serve assets up directly from disk, so rewriting the URL does not make sense ...(css || []).map(file => template(' ')({ href: file.url, }) ), ' ', '', ' ', ...(js || []).map(file => template(' ')({ src: file.url, }) ), ...(additionalStaticJs || []).map(({ contents, pathname }) => ( inlineScriptsAllowed ? template(' ')({ contents, }) : template(' ')({ src: rootUrlPathPrefix + pathname }) )), '', head, '', '', '', ].join('\n'); export function closeTemplate() { return "\n"; }