View Source Surface.Compiler.EExEngine (surface v0.11.4)

This module glues together surface's AST and Phoenix.LiveView.Engine to actually render an AST.

It takes a list of Surface AST nodes, and processes them into a sequence of static raw html items and dynamic pieces. It then converts these into tokens which an EEx engine can understand (see EEx.Tokenizer for information on this). Finally, it passes these tokens into the engine sequentially in the same manner as EEx.Compiler.compile/2

Summary

Functions

Link to this function

translate(nodes, opts \\ [])

View Source
@spec translate(
  [Surface.AST.t()],
  nil | maybe_improper_list() | map()
) :: any()