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

x/lume/core/loaders/text.ts

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Go to Latest
File
import { parseFrontMatter } from "./yaml.ts";
import type { Data } from "../../core.ts";
/** Load a text file. Detect and parse the front matter */export default async function (path: string): Promise<Data> { const content = await Deno.readTextFile(path); return parseFrontMatter(content, path);}