<if-post> execute a block if this is a POST request

name
if-post
xml namespace
http://moyaproject.com

Executes the enclosing block if the current request is a POST request.

Basically a shorthand for:

<if test=".request.method=='POST'">

May be followed by <else> or <elif>.

Example

<if-post>
    <!-- validate form -->
</if-post>
<else>
    <!-- not a post request -->
</else>
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes