| 1234567891011121314151617 |
- <!DOCTYPE html>
- <html>
- <head>
- <pstm-uri>/dashboard</pstm-uri>
- <pstm-template>main</pstm-template>
- <!-- A guard: unauthenticated visitors are redirected to "/" before the
- entrypoint is even fetched (pre-entrypoint), and re-checked on every
- evaluate cycle (e.g. after logging out). -->
- <link rel="stm-guard" require="auth" href="/" pre-entrypoint>
- </head>
- <body>
- <h2>Dashboard</h2>
- <p>Signed in as <strong stm-text="auth.name">user</strong>
- (<span stm-text="auth.role">role</span>).</p>
- <p><a href="/">Back home</a></p>
- </body>
- </html>
|