Surface.Formatter.Phases.Render (surface v0.7.0) View Source

Render the formatted Surface code after it has run through the other transforming phases.

Link to this section Summary

Functions

Given a Surface.Formatter.formatter_node/0 node, render it to a string for writing back into a file.

Callback implementation for Surface.Formatter.Phase.run/2.

Link to this section Types

Link to this type

render_attribute_option()

View Source

Specs

render_attribute_option() :: {:attributes, [Surface.Formatter.attribute()]}

Link to this section Functions

Link to this function

render_node(segment, opts)

View Source

Specs

Given a Surface.Formatter.formatter_node/0 node, render it to a string for writing back into a file.

Callback implementation for Surface.Formatter.Phase.run/2.