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
  c2541906_fba7_715d_e639_e73e1dfd12a2["stripTemplateString()"]
  b9f12a63_b611_1b00_0717_3ff21d7ce156["compileScript.ts"]
  c2541906_fba7_715d_e639_e73e1dfd12a2 -->|defined in| b9f12a63_b611_1b00_0717_3ff21d7ce156
  style c2541906_fba7_715d_e639_e73e1dfd12a2 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