Skip to content
domifyPublic

About

A small demo blog built with web, the tape-memory web framework for ris

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

blog-demo

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/: a title: and a date: 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 from BLOG_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).

Run

BLOG_PASSWORD=secret ris run blog.ri

Then 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.

Test

ris test

blog_test.ri sends every route a request in-process, against posts in a temporary directory.

Files

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

About

A small demo blog built with web, the tape-memory web framework for ris

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages