Module

x/lume/core/formats.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class default
import { default } from "https://dotland.deno.dev/x/lume@v2.3.3/core/formats.ts";

Class to store loaders, engines and other stuff related with different formats

Properties

entries: Map<string, Format>
readonly
size: number

Methods

delete(extension: string): void

Delete a format

deleteCache(file: string): void

Delete a cached template

get(extension: string): Format | undefined

Returns a format by extension

has(extension: string): boolean

Returns if a format exists

search(path: string): Format | undefined

Search and return the associated format for a path

set(format: Format, override?): void

Assign a value to a extension