Expresso.PlacementTransformer (expresso v0.1.0)

Copy Markdown View Source

The Spark transformer of the places of the elements

It runs one time for each deck module at compile time, before the other transformers. It calls Expresso.Placement.slide/1 for each slide, and an error becomes a Spark.Error.DslError with the path of the slide.

The check changes nothing. It is a transformer and not a verifier, because Spark raises an error from a transformer, and the compile stops. Spark runs a verifier in an @after_verify callback, and Elixir reports its error as a warning.

Summary

Functions

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

Run this transformer before each other transformer

Check the place of each element 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?(arg1)

@spec before?(module()) :: boolean()

Run this transformer before each other transformer

transform(dsl_state)

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

Check the place of each element of each slide of the deck