return async env => { let _out = [] _out.push('') html { head { title { 'Square Checkout' } meta(name="description" content="An example of Square Checkout on Glitch") {} link(rel="stylesheet" href="/main.css") {} link(rel="stylesheet" href="/normalize.css") {} link#favicon(rel="icon" href="https://cdn.glitch.com/4c9bc573-ca4c-48de-8afe-501eddad0b79%2Fsquare-logo.svg?1521834224783" type="image/x-icon") {} meta(charset="utf-8") {} meta(http-equiv="X-UA-Compatible" content="IE=edge") {} meta(name="viewport" content="width=device-width,initial-scale=1") {} } body { header.container { div#square-logo {} h1.header { 'Simple Checkout' } } div.container { form.form-container(method="post" action="checkout.html") { div.item-line { div.item-label { 'Test Item A x 1' } div.item-amount { '$5.00' } } div.item-line { div.item-label { 'Test Item B x 3' } div.item-amount { '$30.00' } } div.item-line.total-line { div.item-label { 'Total' } div.item-amount { '$35.00' } } button(type="submit") { 'Pay now!' } } } } } env.site.serve(env, 200, Buffer.from(_out.join('')), 'index.html.jst') }