Dala.Spark.Transformers.Render (dala v0.0.2)

Copy Markdown View Source

Spark transformer that generates the render/1 function for screens using the DSL with UI components.

This transformer:

  1. Extracts UI component entities from the DSL
  2. Generates a render function that builds the component tree
  3. Handles all UI component types defined in Dala.UI

Summary

Functions

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

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

Process a value, replacing @ref with assigns.access.

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.

process_at_refs(value)

Process a value, replacing @ref with assigns.access.

Handles strings, atoms, lists, and maps recursively. Example: "Count: @count" becomes: "Count: " <> assigns.count

transform(dsl_state)

Callback implementation for Spark.Dsl.Transformer.transform/1.