cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit ae91beab83f5b3824e0ed2c5d9a7f01640bce0e4
parent fe124900389991c74df3325b7abea212680f61ec
Author: Daniel Barlow <dan@telent.net>
Date:   Sat,  9 Aug 2025 14:52:54 +0100

style: prefer foo.bar over (. foo :bar) where possible

Diffstat:
Mmain.fnl | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/main.fnl b/main.fnl @@ -182,7 +182,7 @@ href=\"https://axillae.telent.net/\">@dan@axillae.telent.net</a> (fn send-post [stream collection post excerpt?] - (let [path (. post :full-path) + (let [path post.full-path s (stream-from-cq-stream stream)] (print :path path) (post:body collection s))) @@ -243,15 +243,14 @@ href=\"https://axillae.telent.net/\">@dan@axillae.telent.net</a> (stream:write_chunk "" true ))) (fn send-post-page [stream collection post] - (let [path (. post :full-path)] - (server.headers stream { }) + (let [path post.full-path] + (server.headers stream { }) (page-header stream post.title) (send-post stream collection post) (sidebar stream collection) (page-footer stream) (stream:write_chunk "" true))) - (fn send-topic-page [stream collection slug order] (let [post (collection:get slug) order (or order { :title :ascending })