<moya xmlns="http://moyaproject.com"
    xmlns:forms="http://moyaproject.com/forms"
    xmlns:let="http://moyaproject.com/let">

    <!-- Libraries will typically define a mountpoint to add URLs -->
    <mountpoint name="main">
        <!-- The view for your JSON Remote Procedure Call interface -->
        <url route="/jsonrpc/" methods="GET,POST" view='#jsonrpc.interface' name="jsonrpc" />
        <url route="/test-rewrite/">
            <rewrite-to path="/about/"/>
        </url>
        <url route="/form/" view="#view.form"/>
    </mountpoint>

    <view libname="view.form" template="/form.html">
        <forms:get form="#form.test" dst="form"/>
        <forms:validate src="form">
            <return-dict let:form="form" let:success="yes"/>
            <echo>validate exit</echo>
        </forms:validate>
        <echo>View exit</echo>

    </view>
</moya>