UYSio / plato-tools

See plato.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

See plato.


Languages

Language:Racket 74.9%Language:CSS 7.8%Language:JavaScript 5.9%Language:HTML 5.0%Language:Shell 3.7%Language:Makefile 2.1%Language:Python 0.7%