Package-level declarations

Functions

Link copied to clipboard
.foreach iterable:{Iterable<Any>} body:{Lambda} -> Iterable<Any>

Repeats content for each element of an iterable collection. The current element can be accessed via the lambda argument, which may be either explicit or implicit.

Link copied to clipboard
.function name:{String} body:{Lambda} -> Void

Defines a custom function that can be called later in the document.

Link copied to clipboard
.if condition:{Boolean} body:{Lambda} -> Any

Performs a conditional evaluation of content, including the evaluation of body only if the condition is met. The expression is not evaluated if the condition is false.

Link copied to clipboard
.ifnot condition:{Boolean} body:{Lambda} -> Any

Shorthand for .if {.condition::not}.

Link copied to clipboard
.let value:{Dynamic} body:{Lambda} -> Any

Defines a temporary variable that lives only inside the lambda body.

Link copied to clipboard
.node -> Node

Creates a null invisible node that forces the expression it lies in to be evaluated as Markdown content.

Link copied to clipboard
.repeat times:{Int} body:{Lambda} -> Iterable<Any>

Repeats content N times. This is shorthand for .foreach {..N}.

Link copied to clipboard
.var name:{String} value:{Dynamic} -> Void

Defines a new variable or overwrites an existing one.