# as\_atom

Source: https://zotonic.com/docs/1338/as_atom

URI: https://zotonic.com/id/1338

Language: en



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:

```django
{{ "foobar"|as_atom }}
```

evaluates to the atom `foobar`.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1338?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1338?language=en>)
