<?xml version="1.0" encoding="UTF-8"?>
<moya xmlns="http://moyaproject.com"
      xmlns:let="http://moyaproject.com/let"
      xmlns:db="http://moyaproject.com/db"
      xmlns:forms="http://moyaproject.com/forms">

    <!-- Example view that gets a form -->
    <view libname="view.front" content="#content.front">
        <!-- Get the form -->
        <forms:get form="#form.getname" dst="form"/>
        <!-- Validate the form using POST data -->
        <forms:validate src="form" if=".request.POST">
            <!-- if the form validates set the value 'name' which is passed to the content -->
            <let name="form.data.name" />
        </forms:validate>
    </view>

</moya>
