A small blog on web, the Sinatra-style framework for ris where every request runs on its own tape memory.
- Posts are text files in
posts/: atitle:and adate:line, a blank line, then the text. A blank line starts a paragraph,#a heading,-a list item. - Write a post in the browser at
/new, with the password fromBLOG_PASSWORD. With none set, nobody can write. - An Atom feed at
/feed.xml. - Pages are Slim templates. They, a
post's HTML and the feed are written onto the request's tape and
copied to the heap once (
markup.ri,site.ri).
BLOG_PASSWORD=secret ris run blog.riThen open http://localhost:3000. -p 8080 or PORT picks another port,
BLOG_POSTS another posts directory and BLOG_URL the address the feed
links to.
ris testblog_test.ri sends every route a request in-process, against posts in a
temporary directory.
| File | What |
|---|---|
blog.ri |
The program: settings, static files, routes, run |
site.ri |
The routes, on a store and a password |
store.ri |
Posts as files: list, find, create, slugs |
markup.ri |
A post's text as HTML, on the tape |
views/ |
Slim templates, compiled into the program |
public/ |
The stylesheet |