Home / Function/ Each_string_template() — svelte Function Reference

Each_string_template() — svelte Function Reference

Architecture documentation for the Each_string_template() function in index.svelte.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  f43a51b3_9610_f27c_63ef_7a00958ee281["Each_string_template()"]
  48c4181f_c908_6fd1_3ac3_c3d152596b74["index.svelte.js"]
  f43a51b3_9610_f27c_63ef_7a00958ee281 -->|defined in| 48c4181f_c908_6fd1_3ac3_c3d152596b74
  style f43a51b3_9610_f27c_63ef_7a00958ee281 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/snapshot/samples/each-string-template/_expected/server/index.svelte.js lines 3–15

export default function Each_string_template($$renderer) {
	$$renderer.push(`<!--[-->`);

	const each_array = $.ensure_array_like(['foo', 'bar', 'baz']);

	for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
		let thing = each_array[$$index];

		$$renderer.push(`<!---->${$.escape(thing)}, `);
	}

	$$renderer.push(`<!--]-->`);
}

Domain

Subdomains

Frequently Asked Questions

What does Each_string_template() do?
Each_string_template() is a function in the svelte codebase, defined in packages/svelte/tests/snapshot/samples/each-string-template/_expected/server/index.svelte.js.
Where is Each_string_template() defined?
Each_string_template() is defined in packages/svelte/tests/snapshot/samples/each-string-template/_expected/server/index.svelte.js at line 3.

Analyze Your Own Codebase

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

Try Supermodel Free