Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lume/core.ts>Site#getContent

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
method Site.prototype.getContent
Re-export
import { Site } from "https://deno.land/x/lume@v1.16.0/core.ts";

Get the content of a file. Resolve the path if it's needed.

Parameters

file: string
optional
unnamed 1: ResolveOptions = [UNSUPPORTED]

Returns

Promise<string | Uint8Array | undefined>