Skip to main content
Module

x/lume/core/formats.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class default
import { default } from "https://deno.land/x/lume@v1.15.2/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): void

Assign a value to a extension