stringify_tag_attributes() — svelte Function Reference
Architecture documentation for the stringify_tag_attributes() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 395c4d8f_d709_5627_02c8_e3da7b9cf209["stringify_tag_attributes()"] ccf6927a_1f1b_1dda_8616_80903a72ba16["index.js"] 395c4d8f_d709_5627_02c8_e3da7b9cf209 -->|defined in| ccf6927a_1f1b_1dda_8616_80903a72ba16 3d6e4414_b36d_fff0_63de_9aea1fab6869["process_tag()"] 3d6e4414_b36d_fff0_63de_9aea1fab6869 -->|calls| 395c4d8f_d709_5627_02c8_e3da7b9cf209 style 395c4d8f_d709_5627_02c8_e3da7b9cf209 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/preprocess/index.js lines 241–251
function stringify_tag_attributes(attributes) {
if (!attributes) return;
let value = Object.entries(attributes)
.map(([key, value]) => (value === true ? key : `${key}="${value}"`))
.join(' ');
if (value) {
value = ' ' + value;
}
return value;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does stringify_tag_attributes() do?
stringify_tag_attributes() is a function in the svelte codebase, defined in packages/svelte/src/compiler/preprocess/index.js.
Where is stringify_tag_attributes() defined?
stringify_tag_attributes() is defined in packages/svelte/src/compiler/preprocess/index.js at line 241.
What calls stringify_tag_attributes()?
stringify_tag_attributes() is called by 1 function(s): process_tag.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free