Interested in sponsoring this lovely little spot?

post

An array of sanitized POST variables that come from any form data present for a POST to the current URL. It can be used as a tag pair with access to all your data or as a single tag to access variables directly. A counterpart to {{ get }}.

<form method="post">
<input type="hidden" name="_token" value="csrftokenhere" />
<input type="text" name="first_name" value="Niles">
<input type="text" name="last_name" value="Peppertrout">
<button>Submit</button>
</form>
{{ post }}
{{ first_name }} {{ last_name }}
{{ /post }}
 
Mr. {{ post:last_name }}
Niles Peppertrout
 
Mr. Peppertrout
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →