ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.22.181.92 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/nicnwebsiteUpgrade/node_modules/vue/src/server/template-renderer/ |
Upload File : |
/* @flow */ const compile = require('lodash.template') const compileOptions = { escape: /{{([^{][\s\S]+?[^}])}}/g, interpolate: /{{{([\s\S]+?)}}}/g } export type ParsedTemplate = { head: (data: any) => string; neck: (data: any) => string; tail: (data: any) => string; }; export function parseTemplate ( template: string, contentPlaceholder?: string = '<!--vue-ssr-outlet-->' ): ParsedTemplate { if (typeof template === 'object') { return template } let i = template.indexOf('</head>') const j = template.indexOf(contentPlaceholder) if (j < 0) { throw new Error(`Content placeholder not found in template.`) } if (i < 0) { i = template.indexOf('<body>') if (i < 0) { i = j } } return { head: compile(template.slice(0, i), compileOptions), neck: compile(template.slice(i, j), compileOptions), tail: compile(template.slice(j + contentPlaceholder.length), compileOptions) } }