2024-04-12 03:49:34 +09:00
|
|
|
(defpackage #:hp/routes/index
|
2024-02-02 01:07:19 +09:00
|
|
|
(:use #:cl)
|
2024-02-09 05:54:51 +09:00
|
|
|
(:local-nicknames (#:pi #:piccolo))
|
2024-04-12 03:49:34 +09:00
|
|
|
(:local-nicknames (#:view #:hp/view))
|
2024-02-13 20:34:31 +09:00
|
|
|
(:export #:on-get))
|
2024-02-02 01:07:19 +09:00
|
|
|
(in-package #:hp/routes/index)
|
|
|
|
|
2024-02-09 05:54:51 +09:00
|
|
|
(pi:define-element page ()
|
|
|
|
(pi:h
|
2024-04-14 00:18:48 +09:00
|
|
|
(section :data-cmp "pages/index"
|
2024-04-12 03:49:34 +09:00
|
|
|
(h1 "Hello, World!")
|
|
|
|
(a :href "/about" :hx-boost "true"
|
|
|
|
"About"))))
|
2024-02-02 01:07:19 +09:00
|
|
|
|
2024-02-13 20:34:31 +09:00
|
|
|
(defun on-get (params)
|
2024-02-02 01:07:19 +09:00
|
|
|
(declare (ignore params))
|
2024-04-12 16:59:11 +09:00
|
|
|
(view:render (page)))
|