Home / Function/ renderAttrs() — vue Function Reference

renderAttrs() — vue Function Reference

Architecture documentation for the renderAttrs() function in runtime-helpers.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  a78a83a4_53a3_a16a_7da6_646682fbc719["renderAttrs()"]
  5c31f360_ac69_0a14_e083_68773e1a8fb7["renderAttrs()"]
  a78a83a4_53a3_a16a_7da6_646682fbc719 -->|calls| 5c31f360_ac69_0a14_e083_68773e1a8fb7
  36d518f0_47bc_38b2_b221_7b4f9bfce2a1["isSSRUnsafeAttr()"]
  a78a83a4_53a3_a16a_7da6_646682fbc719 -->|calls| 36d518f0_47bc_38b2_b221_7b4f9bfce2a1
  37924a94_7eda_6738_f2fb_dc83c64098b0["renderAttr()"]
  a78a83a4_53a3_a16a_7da6_646682fbc719 -->|calls| 37924a94_7eda_6738_f2fb_dc83c64098b0
  style a78a83a4_53a3_a16a_7da6_646682fbc719 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/server-renderer/src/optimizing-compiler/runtime-helpers.ts lines 110–119

function renderAttrs(obj: Object): string {
  let res = ''
  for (const key in obj) {
    if (isSSRUnsafeAttr(key)) {
      continue
    }
    res += renderAttr(key, obj[key])
  }
  return res
}

Subdomains

Frequently Asked Questions

What does renderAttrs() do?
renderAttrs() is a function in the vue codebase.
What does renderAttrs() call?
renderAttrs() calls 3 function(s): isSSRUnsafeAttr, renderAttr, renderAttrs.

Analyze Your Own Codebase

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

Try Supermodel Free