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