Module

x/lume/core/component_loader.ts>ComponentFile

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface ComponentFile
import { type ComponentFile } from "https://dotland.deno.dev/x/lume@v2.1.4/core/component_loader.ts";

Properties

optional
name: string

Name of the component (used to get it from templates)

content: unknown

The content of the component

optional
css: string

Optional CSS code needed to style the component (global, only inserted once)

optional
js: string

Optional JS code needed for the component interactivity (global, only inserted once)

optional
inheritData: boolean

If false, the data from the parent directory will not be inherited