surface v0.1.0-alpha.0 Surface.MacroComponent behaviour View Source

A low-level component which is responsible for translating its own content at compile time.

Link to this section Summary

Callbacks

Tranlates the content of the macro component.

Link to this section Callbacks

Link to this callback

translate(code, list)

View Source
translate(code :: any(), [{:caller, Macro.Env.t()}]) ::
  {open :: iodata(), content :: iodata(), close :: iodata()}

Tranlates the content of the macro component.