Lavash.SparkHeex.Transformers.CompileTemplate (Lavash v0.4.0-rc.3)

Copy Markdown View Source

Compiles the HEEx template source into a render/1 function on the using module. The function takes an assigns map and returns a %Phoenix.LiveView.Rendered{}, identical in shape to what ~H produces inside a regular Phoenix.Component.

Also defines __lavash_heex_template_source__/0 so tests/introspection can see the captured source.

Summary

Functions

after?(arg1)

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)

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