Fetching contributors…
Cannot retrieve contributors at this time
18 lines (9 sloc) 516 Bytes
.. highlight:: django

Pickle an Erlang value so that it can be safely submitted with a form.

The Erlang value is encoded using erlang:term_to_binary/1 and signed with the site’s secret key. In Erlang the value can be unpacked using z_utils:depickle/2


<input type="hidden" name="confirm" value="{{ 'Hello world' | pickle }}" />

This will generate something like:

<input type="hidden" name="confirm" value="duZTXcXaxuruD3dhpt-rxWokrhuDbQAAAAtIZWxsbyB3b3JsZA" />