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
200
Run
77
Strings
22
Components
2
Extracted CSS · 1628 bytes
jw-skel{display:inline-block;min-width:3em;height:.85em;border-radius:4px;background:currentColor;opacity:.12;vertical-align:middle}jw-skel.w{min-width:8em}jw-region[data-jw-transition],jw-view[data-jw-transition]{display:block}
:root:not(:has(body[data-jw-transitions]))::view-transition-old(root),:root:not(:has(body[data-jw-transitions]))::view-transition-new(root){animation:none}
::view-transition-group(*.fade),::view-transition-group(*.slide),::view-transition-group(*.rise),::view-transition-group(*.scale){animation-duration:.24s}
::view-transition-old(*.fade){animation:.16s ease-out both jw-out}::view-transition-new(*.fade){animation:.24s ease-in both jw-in}
::view-transition-old(*.slide){animation:.22s ease-in both jw-out,.22s ease-in both jw-left}::view-transition-new(*.slide){animation:.26s ease-out both jw-in,.26s ease-out both jw-from-right}
::view-transition-old(*.rise){animation:.16s ease-out both jw-out}::view-transition-new(*.rise){animation:.28s cubic-bezier(.2,.8,.2,1) both jw-in,.28s cubic-bezier(.2,.8,.2,1) both jw-up}
::view-transition-old(*.scale){animation:.16s ease-out both jw-out}::view-transition-new(*.scale){animation:.24s ease-out both jw-in,.24s ease-out both jw-grow}
@keyframes jw-out{to{opacity:0}}@keyframes jw-in{from{opacity:0}}@keyframes jw-left{to{transform:translateX(-24px)}}@keyframes jw-from-right{from{transform:translateX(24px)}}
@keyframes jw-up{from{transform:translateY(10px)}}@keyframes jw-grow{from{transform:scale(.97)}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
The HTML it rendered · 994 bytes
<header><b>Field Notes</b> · All posts
  <nav></nav>
</header>
<jw-region id="routes" hash="8777b18540340745" data-jw-transition="fade" data-jw-routes>
  <ul>
    <li><a href="/posts/1">Templates that know your types</a></li>
    <li><a href="/posts/2">Pages in parts</a></li>
  </ul>
</jw-region>
<template id="motus-route-c91d661a5a" data-jw-outlet="routes" data-jw-route="/">
  <ul></ul>
</template>
<template id="motus-route-ab4bfed46c" data-jw-outlet="routes" data-jw-route="/posts/:id"></template>
<template id="motus-route-ae964fd487" data-jw-outlet="routes" data-jw-route="/drafts"></template>
<template id="motus-route-37e3ca3358" data-jw-outlet="routes" data-jw-route="/stats">
  <p><jw-skel></jw-skel> posts, <jw-skel></jw-skel> published.</p>
</template>
<template id="motus-route-04b27d4030" data-jw-outlet="routes" data-jw-route="/old"><redirect to="/"></redirect></template>
<template id="motus-route-c91d6b1a5a" data-jw-outlet="routes" data-jw-route="*"><status></status>
  <p>Nothing at this address.</p>
</template>
  • 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.