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

x/lume/core.ts>Formats

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