The Dump Project

'Crafted' /s by Isaac Clayton

IDEAS

Created: Tuesday April 27, 2021
Last Edited: Thursday April 29, 2021

↖ Back to dump?


slightknack.dev version 2

Goals

Ideas

+ website
|-+ _static
| |- style.css
| |- base.html
|-+ blog
| |- My First Post.md
| |- My Second Post.md
|- index.md

Rendering technique:

start with the root folder
(1) enter the folder
if index.* in folder
    go to (2) with index.*
pages = for each item in folder
    if item is a folder go to (1)
    if not go to (2) with item
    if item is hidden, don't hide
make feed from subpages
render index with feed if markdown
render raw index if html

(2) load the file
use git to find last time modified
if file is markdown, render and insert into default html template
if file is html, do the raw html
otherwise, insert into default html template
emit rendered page without extension
emit raw page with extension

More ideas

Even more ideas

Better rendering technique:

copy the directory to a new location
walk the new directory:
    for each file, render out copy as html
    for each directory, render out all sub-files

More ideas