iona v1.0.0-alpha.3 Iona.Template.Safe protocol View Source

Defines the LaTex safe protocol.

In order to promote LaTex safety, Phoenix templates do not use Kernel.to_string/1 to convert data types to strings in templates. Instead, Phoenix uses this protocol which must be implemented by data structures and guarantee that a LaTex safe representation is returned.

Furthermore, this protocol relies on iodata, which provides better performance when sending or streaming data to the client.

Link to this section Summary

Link to this section Types

Link to this section Functions