Skip to content

UYSio/plato-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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