Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 369 Bytes

Convert a value to an Erlang atom.

Atoms are represented in the template language as strings between backticks, `like this`. Some template function require their arguments to be atoms, and this filter helps in converting any value to such an atom:

{{ "foobar"|as_atom }}

evaluates to the atom foobar.

Jump to Line
Something went wrong with that request. Please try again.