simplates v0.1.0 Simplates.Specline

Summary

Functions

Parses a specline like media/type via EEx into a tuple {status, renderer, content_type}

Functions

long_renderer(short)
parse_specline(line)

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