See plato.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.plato
examples
lib
modules
scripts
static/templates
.gitmodules
.projectile
404.html
Makefile
README.md
main.rkt

README.md

What is this?

A manifestation of ₽lato.

Start

git clone --recursive https://github.com/UYSio/plato-tools.git
make hoedown

This last command cleans hoedown, updates it, then compiles it.

Parse content

make run 

Depends on config in user home: ~/.plato/config.rkt

If you have no config, prep one with:

make prep

Mime detection

Uses same mime.types recently pushed to the Racket web-server.

Handlers

Consider the content at /home/me/Documents/words/2015/10/31/asset.ext

A handler will do this:

  • mkdir {{config/output-root}}/pages/2015/10/31
  • create a landing page {{config/output-root}}/pages/2015/10/31/index.html
  • mkdir {{config/output-entries}}
  • create a feed entry {{config/output-entries}}/2015_10_31_asset.ext.html

"pages" is currently hard-coded, and relative to {{config/output-root}}.

How it works

An "entry" is written for each asset, into out-entries.

The collate module then writes all those entries out to the home page.

TODO