Lavash.Component.Transformers.TokenizeTemplate (Lavash v0.3.0-rc.2)

Copy Markdown View Source

Tokenizes the template source string into HTML tokens.

Runs the full EEx + HTML tokenization pipeline via TagEngine.tokenize (which drives EEx.compile_string in tokenize-only mode). This handles both {expr} and <%= %> syntax in a single pass.

Persists:

  • :lavash_template_tokens — finalized HTML + expression token list
  • :lavash_template_source — raw template source string

Summary

Functions

after?(arg1)

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

after_compile?()

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

before?(arg1)

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

transform(dsl_state)

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