EEx.Engine behaviour

This is the basic EEx engine that ships with Elixir. An engine needs to implement two functions:

Source

Summary

handle_expr(buffer, binary2, expr)

Implements expressions according to the markers

handle_text(buffer, text)

The default implementation simply concatenates text to the buffer

Functions

handle_expr(buffer, binary2, expr)

Implements expressions according to the markers.

<% Elixir expression - inline with output %>
<%= Elixir expression - replace with result %>

All other markers are not implemented by this engine.

Source
handle_text(buffer, text)

The default implementation simply concatenates text to the buffer.

Source

Callbacks

handle_expr(t, binary, t)

Specs:

Source
handle_text(t, binary)

Specs:

Source