A guestbook in twelve lines
24 October 2026
The guestbook on this site reads a form, checks two fields, writes one row to the database, and redirects.
Read more →3 posts, read from a SQLite table. Each link is a clean URL.
24 October 2026
The guestbook on this site reads a form, checks two fields, writes one row to the database, and redirects.
Read more →22 October 2026
Most languages are written for the computer first and the reader second. Common tries the other order.
Read more →21 October 2026
This is the first post on a blog written in Common.
Read more →set slug to last of split path by "/"
if slug is "blog"
set posts to ask database "select * from posts order by posted desc"
otherwise
set posts to ask database "select * from posts where slug = ?" with slug
end
to show_post post
show
<h2><a href="/blog/[slug of post]">[title of post]</a></h2>
<p>[first of paragraphs of body of post]</p>
end
end
for each post in posts
show_post post
end