Home / Function/ stripTemplateString() — vue Function Reference

stripTemplateString() — vue Function Reference

Architecture documentation for the stripTemplateString() function in compileScript.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  0346bf8f_aff2_80ae_a47e_e351eff86693["stripTemplateString()"]
  c9346cac_54e3_f6ca_68a7_03c6e82c9609["compileScript.ts"]
  0346bf8f_aff2_80ae_a47e_e351eff86693 -->|defined in| c9346cac_54e3_f6ca_68a7_03c6e82c9609
  style 0346bf8f_aff2_80ae_a47e_e351eff86693 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/compileScript.ts lines 1871–1877

function stripTemplateString(str: string): string {
  const interpMatch = str.match(/\${[^}]+}/g)
  if (interpMatch) {
    return interpMatch.map(m => m.slice(2, -1)).join(',')
  }
  return ''
}

Domain

Subdomains

Frequently Asked Questions

What does stripTemplateString() do?
stripTemplateString() is a function in the vue codebase, defined in packages/compiler-sfc/src/compileScript.ts.
Where is stripTemplateString() defined?
stripTemplateString() is defined in packages/compiler-sfc/src/compileScript.ts at line 1871.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free