Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/formats.ts>Format

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface Format
import { type Format } from "https://deno.land/x/lume@v1.17.5/core/formats.ts";

Properties

ext: string

The file extension for this format

optional
pageLoader: Loader

The file loader used for this format

optional
dataLoader: Loader

Loader for _data files in this format

optional
componentLoader: Loader

Loader for _components files in this format

optional
engines: Engine[]

The template engines used to render this format Used to render the page and components

optional
asset: boolean

This is used to distinguish between pages that output html files (like index.njk -> index.html) and pages that output assets (like styles.css -> styles.css).

optional
includesPath: string

A custom path for includes

optional
copy: boolean | ((path: string) => string)

Whether this file must be copied instead loaded