M templates/app.temple => templates/app.temple +28 -28
@@ 66,37 66,37 @@ $}
</footer>
</vstack>
{% (unless (= (args :path) "/auth") %}
- <script type="text/hyperscript">
- eventsource Events from /events.sse{{ (. "?path=" (args :path))}}
- on notifications as string
- make Notification from it
- end
- on state as html
- put it into #page
- set cl to the window's location's pathname
- if cl != '/'
- set the window's location's pathname to '/'
+ <script type="text/hyperscript">
+ eventsource Events from /events.sse{{ (. "?path=" (args :path))}}
+ on notifications as string
+ make Notification from it
end
- call htmx.process(#page)
- end
- on running as html
- if #running-time-wrap is not empty
- put it into #running-time-wrap
- call htmx.process(#running-time-wrap)
+ on state as html
+ put it into #page
+ set cl to the window's location's pathname
+ if cl != '/'
+ set the window's location's pathname to '/'
+ end
+ call htmx.process(#page)
+ end
+ on running as html
+ if #running-time-wrap is not empty
+ put it into #running-time-wrap
+ call htmx.process(#running-time-wrap)
+ end
+ end
+ on list as html
+ put it into #tasks
+ call htmx.process(#tasks)
+ end
+ on open
+ log "opened"
+ end
+ on ping
+ log "pinged"
end
end
- on list as html
- put it into #tasks
- call htmx.process(#tasks)
- end
- on open
- log "opened"
- end
- on ping
- log "pinged"
- end
- end
- </script>
+ </script>
{% ) %}
<script id="location"></script>
<script src="https://unpkg.com/htmx.org@1.7.0"