| 123456789101112131415161718192021222324 |
- <!DOCTYPE html>
- <html>
- <head>
- <pstm-uri>/</pstm-uri>
- <pstm-template>main</pstm-template>
- </head>
- <body>
- <!-- A component (fragment): its <head> merges into the page head and its
- body is materialised into the wrapping element. -->
- <pstm-fragment name="counter-card" />
- <div stm-if="auth != null">
- <p>Welcome back, <strong stm-text="auth.name">user</strong>.</p>
- <p><a href="/dashboard">Dashboard</a> · <button stm-action="auth.logout">Log out</button></p>
- </div>
- <div stm-else>
- <p>Sign in to personalise this page.</p>
- <form stm-action="page.login">
- <label>Name <input name="name" placeholder='try "admin"'></label>
- <button type="submit">Log in</button>
- </form>
- </div>
- </body>
- </html>
|