Expresso.Overlay.Transformer (expresso v0.1.0)

Copy Markdown View Source

The Spark transformer for overlays

It runs one time for each deck module at compile time. It calls Expresso.Overlay.Expand.slide/1 for each slide, and it writes the result into the DSL state. An error from the expansion becomes a Spark.Error.DslError with the path of the slide.

Summary

Functions

Callback implementation for Spark.Dsl.Transformer.after?/1.

Callback implementation for Spark.Dsl.Transformer.before?/1.

Expand the specifications of each slide of the deck

Functions

after?(_)

Callback implementation for Spark.Dsl.Transformer.after?/1.

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.

before?(_)

Callback implementation for Spark.Dsl.Transformer.before?/1.

transform(dsl_state)

@spec transform(map()) :: {:ok, map()} | {:error, Spark.Error.DslError.t()}

Expand the specifications of each slide of the deck