Module
jinks/helpers
src/jinks/helpers.pookaTemplates borrow small, deterministic helpers rather than a filesystem or a network client. Asset fingerprints are prepared once by the build; a template cannot turn an asset name into an arbitrary file read.
API reference
install(
library: tuck.Library,
site: config.Config,
clock: String,
assets: List(#(String, String))
) -> Result(tuck.Library, String)
INFERRED
fn($package/tuck/tuck.Library, jinks/config.Config, String, List(#(String, String))) -> Result($package/tuck/tuck.Library, String)text(value: json.Json, run: fn(String) -> Result(json.Json, String)) -> Result(
json.Json,
String
)
INFERRED
fn($package/pooka_json/pooka/json.Json, fn(String) -> Result($package/pooka_json/pooka/json.Json, String)) -> Result($package/pooka_json/pooka/json.Json, String)relative(base: String, url: String) -> Result(String, String)
INFERRED
fn(String, String) -> Result(String, String)reading_time(source: String) -> Int
INFERRED
fn(String) -> Intformat_date(source: String, short: Bool) -> Result(String, String)
INFERRED
fn(String, Bool) -> Result(String, String)minutes(words: Int, total: Int) -> Int
INFERRED
fn(Int, Int) -> Intwith_samples(library: tuck.Library, root: String) -> Result(
tuck.Library,
String
)
INFERRED
fn($package/tuck/tuck.Library, String) -> Result($package/tuck/tuck.Library, String)Samples are author-selected source files beneath a dedicated root. No host function exposes an arbitrary read capability to a template.