Add support for TOML to store data and create pages.

Options See on

extensions string[] object

The list of extensions this plugin applies to

[ ".toml" ]


This plugin allows you to create pages and store data using the TOML format.


Import this plugin in your _config.ts file to use it:

import lume from "lume/mod.ts";
import toml from "lume/plugins/toml.ts";

const site = lume();


export default site;

Create pages

Create a file with the extension .toml in your src folder. For example:

title = "Welcome to my page"
layout = "layouts/main.njk"
content = "This is my first post using lume,\nI hope you like it!"

Create data files

Create a file with the name _data.toml or inside a _data directory.