Library

data class Library(val name: String, val functions: Set<Function<*>>, val onLoad: (Context) -> Unit? = null, val hooks: PipelineHooks? = null)

A bundle of functions that can be called from a Quarkdown source.

Parameters

name

name of the library

functions

functions the library makes available to call

onLoad

optional action to run when the library is loaded in a context

hooks

optional actions to run after each stage of a pipeline where this library is registered in has been completed

Constructors

Link copied to clipboard
constructor(name: String, functions: Set<Function<*>>, onLoad: (Context) -> Unit? = null, hooks: PipelineHooks? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val hooks: PipelineHooks? = null
Link copied to clipboard
Link copied to clipboard
val onLoad: (Context) -> Unit? = null

Functions

Link copied to clipboard