internalSpreadAttributes() — astro Function Reference
Architecture documentation for the internalSpreadAttributes() function in util.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD e633602f_bff4_51c8_af7e_125333ca7141["internalSpreadAttributes()"] 05241a8b_1820_8286_5770_4da18477ecde["util.ts"] e633602f_bff4_51c8_af7e_125333ca7141 -->|defined in| 05241a8b_1820_8286_5770_4da18477ecde 7be90353_5224_959b_96bb_043f160e2d14["renderElement()"] 7be90353_5224_959b_96bb_043f160e2d14 -->|calls| e633602f_bff4_51c8_af7e_125333ca7141 f16d0d52_160f_152d_f7fe_a1fd178b948b["addAttribute()"] e633602f_bff4_51c8_af7e_125333ca7141 -->|calls| f16d0d52_160f_152d_f7fe_a1fd178b948b style e633602f_bff4_51c8_af7e_125333ca7141 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/render/util.ts lines 150–160
export function internalSpreadAttributes(
values: Record<any, any>,
shouldEscape = true,
tagName: string,
) {
let output = '';
for (const [key, value] of Object.entries(values)) {
output += addAttribute(value, key, shouldEscape, tagName);
}
return markHTMLString(output);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does internalSpreadAttributes() do?
internalSpreadAttributes() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/util.ts.
Where is internalSpreadAttributes() defined?
internalSpreadAttributes() is defined in packages/astro/src/runtime/server/render/util.ts at line 150.
What does internalSpreadAttributes() call?
internalSpreadAttributes() calls 1 function(s): addAttribute.
What calls internalSpreadAttributes()?
internalSpreadAttributes() is called by 1 function(s): renderElement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free