Module

jinks/data

src/jinks/data.pooka

A data file gets a name from its place on the shelf. TOML and JSON share the same template boundary, but two files cannot quietly claim one name. Nested directories become nested objects: data/people/finch.toml is available as data.people.finch, without any code running in the template.

API reference

function

load

src/jinks/data.pooka:21
load(root: String) -> Result(json.Json, String)
INFERREDfn(String) -> Result($package/pooka_json/pooka/json.Json, String)
function

insert

src/jinks/data.pooka:61
insert(root: json.Json, names: List(String), entry: json.Json) -> json.Json
INFERREDfn($package/pooka_json/pooka/json.Json, List(String), $package/pooka_json/pooka/json.Json) -> $package/pooka_json/pooka/json.Json