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

Copy Markdown View Source

Reads the @__lavash_heex_template__ module attribute (set by the template macro) and persists it into the DSL state so subsequent transformers can inspect it.

Also parses the HEEx source via Phoenix.LiveView.TagEngine.Parser and persists the resulting node tree as :heex_tree. Downstream transformers (ValidateEvents) walk that tree to validate phx-* event handler attributes against declared actions.

In LV 1.2 the parser emits a nested tree of :block / :self_close / :body_expr / :eex_block / :text / :eex_comment nodes. See Phoenix.LiveView.TagEngine.Parser for the @type definitions.

Summary

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)

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