Motus

Playground

A template and its data, compiled and rendered by the server as you type, under a store's rules.

Template 64 KB at most
The preview follows your typing: the form is sent as you type (submit-on), the page answered with what changed. No script of the site's.
Preview · sandboxed, no scripts200

Compiled and rendered: no problems.

Instructions
120
Run
127
Strings
26
Components
2
Extracted CSS · 0 bytes
/* no styles */
The HTML it rendered · 1862 bytes
<table>
  <thead>
    <tr>
      <th>Expression</th>
      <th>Result</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code>uppercase(team)</code></td>
      <td>  NIGHT SHIFT  </td>
    </tr>
    <tr>
      <td><code>lowercase("ÁGUA FRIA")</code></td>
      <td>água fria</td>
    </tr>
    <tr>
      <td><code>trim(team)</code></td>
      <td>[Night Shift]</td>
    </tr>
    <tr>
      <td><code>length(trim(team))</code></td>
      <td>11</td>
    </tr>
    <tr>
      <td><code>default(owner, "nobody yet")</code></td>
      <td>nobody yet</td>
    </tr>
    <tr>
      <td><code>join(regions, " · ")</code></td>
      <td>Lisbon · Recife · Austin · Osaka</td>
    </tr>
    <tr>
      <td><code>truncate(note, 28)</code></td>
      <td>Friday was the best day yet.…</td>
    </tr>
    <tr>
      <td><code>first(regions)</code></td>
      <td>Lisbon</td>
    </tr>
    <tr>
      <td><code>last(regions)</code></td>
      <td>Osaka</td>
    </tr>
    <tr>
      <td><code>money(revenue, "eur")</code></td>
      <td>€43.182,50</td>
    </tr>
    <tr>
      <td><code>money(revenue, "usd")</code></td>
      <td>$43,182.50</td>
    </tr>
    <tr>
      <td><code>money(revenue, "brl")</code></td>
      <td>R$ 43.182,50</td>
    </tr>
    <tr>
      <td><code>date(updated)</code></td>
      <td>13/10/2026</td>
    </tr>
    <tr>
      <td><code>date(updated, "yyyy-mm-dd hh:nn")</code></td>
      <td>2026-10-13 14:00</td>
    </tr>
    <tr>
      <td><code>plural(incidents.count, "incident", "incidents")</code></td>
      <td>3 incidents</td>
    </tr>
    <tr>
      <td><code>paragraphs(note)</code></td>
      <td>
        <p>Friday was the best day yet.<br>The newsletter went out at nine.</p>
        <p>Sign-ups trail last week: the form lost a field on Tuesday.</p>
      </td>
    </tr>
    <tr>
      <td><code>where(incidents, "open", true)</code></td>
      <td>Checkout slow in Osaka; Card payments failing; </td>
    </tr>
    <tr>
      <td><code>number(stats[0].value)</code></td>
      <td>48,210</td>
    </tr>
    <tr>
      <td><code>number(2 / 3, 2)</code></td>
      <td>0.67</td>
    </tr>
    <tr>
      <td><code>percent(signups, goal)</code></td>
      <td>78.9%</td>
    </tr>
    <tr>
      <td><code>"/s?q=" + url("a b&amp;c")</code></td>
      <td>/s?q=a%20b%26c</td>
    </tr>
    <tr>
      <td><code>css(accent)</code></td>
      <td>#7c3aed position: fixed</td>
    </tr>
  </tbody>
</table>
  • Compiled as a store's template: no <script>, no event handlers, no frames, forms post to the site, CSS checked.
  • Rendered within limits: 250,000 instructions, 512 KB of output, components 32 deep. The template 64 KB at most, the data 32 KB.
  • Yours to use: the kit's <Badge> and <Price>, the actions Comments.add and Comments.erase, Post_Params for a route's params.