include "pages/page.wl" let posts = $query("SELECT title, content FROM Posts WHERE id=?", $post_id) let comments = $query("SELECT C.id, U.username, C.content FROM Comments as C, Users as U WHERE C.parent_post=? AND U.id == C.author", $post_id) let post = posts[0] let style = let main =

\post.title

\post.content

\if $login_user_id != none:
\if len comments == 0: No comments yet! else for comment in comments:
\comment.username

\comment.content

\if $login_user_id != none:
page(post.title, $login_user_id, style, main)