ratchet v0.0.4 Ratchet.EEx

Summary

Functions

Build an arbitrary EEx statement

Spit out an EEx ending

Build an EEx list comprehension from a scope and a property

Functions

eex(statement)

Build an arbitrary EEx statement

iex> Ratchet.EEx.eex("lolwat")
"<%= lolwat %>"
eex_close()

Spit out an EEx ending

eex_comprehension_open(scope, property)

Build an EEx list comprehension from a scope and a property

iex> Ratchet.EEx.eex_comprehension_open("foo", "bar")
"<%= for bar <- List.wrap(foo.bar) do %>"