render-default.js — astro Source File
Architecture documentation for render-default.js, a javascript file in the astro codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 9a929f9c_5ccf_5833_23d6_90612b8c9d1d["render-default.js"] 2ec933b1_5eb0_6df7_64be_172f9299459c["_util.js"] 9a929f9c_5ccf_5833_23d6_90612b8c9d1d --> 2ec933b1_5eb0_6df7_64be_172f9299459c 5d6d1861_a18d_b246_cd94_08889ab7e74c["promises"] 9a929f9c_5ccf_5833_23d6_90612b8c9d1d --> 5d6d1861_a18d_b246_cd94_08889ab7e74c 3c790668_be1c_58e1_f783_4e3a5b4e3a0d["render.js"] 3c790668_be1c_58e1_f783_4e3a5b4e3a0d --> 9a929f9c_5ccf_5833_23d6_90612b8c9d1d style 9a929f9c_5ccf_5833_23d6_90612b8c9d1d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import fs from 'node:fs/promises';
import { loremIpsumHtml, loremIpsumMd } from './_util.js';
// Map of files to be generated and tested for rendering.
// Ideally each content should be similar for comparison.
const renderFiles = {
'components/ListItem.astro': `\
---
const { className, item, attrs } = Astro.props;
const nested = item !== 0;
---
<li class={className}>
<a
href={item}
aria-current={item === 0}
class:list={[{ large: !nested }, className]}
{...attrs}
>
<span>{item}</span>
</a>
</li>
`,
'components/Sublist.astro': `\
---
import ListItem from '../components/ListItem.astro';
const { items } = Astro.props;
const className = "text-red-500";
const style = { color: "red" };
---
<ul style={style}>
{items.map((item) => (
<ListItem className={className} item={item} attrs={{}} />
))}
</ul>
`,
'pages/astro.astro': `\
---
const className = "text-red-500";
const style = { color: "red" };
const items = Array.from({ length: 10000 }, (_, i) => ({i}));
---
<html>
<head>
<title>My Site</title>
</head>
<body>
<h1 class={className + ' text-lg'}>List</h1>
<ul style={style}>
{items.map((item) => (
<li class={className}>
<a
href={item.i}
aria-current={item.i === 0}
class:list={[{ large: item.i === 0 }, className]}
{...({})}
>
<span>{item.i}</span>
</a>
</li>
))}
// ... (73 more lines)
Domain
Subdomains
Functions
Dependencies
- _util.js
- promises
Imported By
Source
Frequently Asked Questions
What does render-default.js do?
render-default.js is a source file in the astro codebase, written in javascript. It belongs to the PerformanceBenchmarking domain, ProjectGenerator subdomain.
What functions are defined in render-default.js?
render-default.js defines 1 function(s): run.
What does render-default.js depend on?
render-default.js imports 2 module(s): _util.js, promises.
What files import render-default.js?
render-default.js is imported by 1 file(s): render.js.
Where is render-default.js in the architecture?
render-default.js is located at benchmark/make-project/render-default.js (domain: PerformanceBenchmarking, subdomain: ProjectGenerator, directory: benchmark/make-project).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free