t(name=&quot;_csrf&quot; value=csrf type=&quot;hidden&quot;)
  input(type=&quot;submit&quot; value=&quot;Subscribe&quot;)
</code></pre>
<p>Then to parse the data from the back-end:</p>
<pre><code class="language-js">const server = require(&#39;server&#39;);
const { get, post } = server.router;
const { render, redirect } = server.reply;

server([
  get(ctx =&gt; render(&#39;index.pug&#39;)),
  post(ctx =&gt; {
    console.log(ctx.data);  // Logs the email
    return redirect(&#39;/&#39;);
  })
]);
</code></p