Simplates v0.5.0 Simplates.Specline
Sections in a simplate are either “code sections” or “content sections”. Content
sections may have a “specline” after the [---]
separator. The format of the specline
is content-type
via renderer
. The syntax of the content sections depends on the
renderer. The logic sections are Elixir.
Summary
Functions
Parses a specline like media/type via EEx
into a tuple {status, renderer, content_type}
Functions
Parses a specline like media/type via EEx
into a tuple {status, renderer, content_type}
Status can be:
:ok
=> Specline so we need to trim the first line
:ok_missing_renderer
=> :ok, but the renderer was missing
:ok_missing_content_type
=> :ok, but the content_type was missing
:empty
=> No specline at all, don’t trim line