Home / Function/ BaseLayout() — astro Function Reference

BaseLayout() — astro Function Reference

Architecture documentation for the BaseLayout() function in container.test.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  82598015_af1c_69e1_5a70_8964bdf59111["BaseLayout()"]
  a0af2cb3_cf33_231e_1236_22c85f7b2603["container.test.js"]
  82598015_af1c_69e1_5a70_8964bdf59111 -->|defined in| a0af2cb3_cf33_231e_1236_22c85f7b2603
  style 82598015_af1c_69e1_5a70_8964bdf59111 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/container.test.js lines 19–30

const BaseLayout = createComponent((result, _props, slots) => {
	return render`<html>
	<head>
	${renderSlot(result, slots['head'])}
	${renderHead(result)}
	</head>
	${maybeRenderHead(result)}
	<body>
		${renderSlot(result, slots['default'])}
	</body>
</html>`;
});

Subdomains

Frequently Asked Questions

What does BaseLayout() do?
BaseLayout() is a function in the astro codebase, defined in packages/astro/test/container.test.js.
Where is BaseLayout() defined?
BaseLayout() is defined in packages/astro/test/container.test.js at line 19.

Analyze Your Own Codebase

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

Try Supermodel Free