Skip to main content

seedling-data-plugin-toml

A data plugin to read and parse TOML data.

Usage

  1. Create a new file in /data with the name toml.ts.
import toml from "https://deno.land/x/seedling_data_plugin_toml@0.0.1/mod.ts";
export default toml;
  1. Use with seedling data directive. There are three ways to use the directive.

As raw inline TOML

  <:data use="toml">
    [[foo]]
    hello = "world"
  </:data>

From a local file

<:data use="toml" file="path/to/json/file.toml" />

Note - This plugin requires the --allow-read command line parameter for Deno when using file attribute.

From a remote url

<:data use="toml" url="https://example.com/path/to/file.toml" />

Note - This plugin requires the --allow-net command line parameter for Deno when using url attribute.