ratchet v0.1.0 Ratchet.EEx
Summary
Functions
Build an EEx statement fetching attributes
Spit out an EEx ending
Build an EEx list comprehension from a scope and a property
Build an EEx statement fetching content
Functions
Build an EEx statement fetching attributes
iex> Ratchet.EEx.eex_attributes("lolwat", [])
"<%= Ratchet.Data.attributes(lolwat, []) %>"
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 %>"