{% if 'key' in handler.args %}

Success

Your key {{ handler.get_arg('key') }} has been submitted.

{% else %}

XSRF template

The XSRF key here is inserted via Tornado templating.

When you submit this form, the input will be sent as a POST request. If you modify the XSRF token, the result will fail.


XSRF AJAX

The XSRF key here is inserted via AJAX.

When you submit this form, the input will be sent as a POST request. If you modify the XSRF token, the result will fail.

{% end %}