pub fn dict(value: Value) -> Result<Value, Error>
Expand description
Creates a dictionary.
This is a convenient alternative for a dictionary literal.
{"foo": "bar"}
is the same as dict(foo="bar")
.
<script>const CONFIG = {{ dict(
DEBUG=true,
API_URL_PREFIX="/api"
)|tojson }};</script>