stelcodes / nuzzle

A functional static site generator so smol you won't even notice it's there 🐈
Eclipse Public License 2.0
17 stars 1 forks source link

Require users to create a render-content fn per page (#134) #154

Closed stelcodes closed 2 years ago

stelcodes commented 2 years ago
Previously Nuzzle created a `:nuzzle/render-content` function for each
page based on the `:nuzzle/content` value. Now `:nuzzle/content` is
removed and users must specify their own `:nuzzle/render-content`
function for every page. If they don't include a `render-content`
function, a function will be added that constantly returns `nil`. This
allows the user to have complete control and understanding of how each
page's content gets made.

The `nuzzle.content` namespace has been reformatted and will probably be
merged with `nuzzle.hiccup` soon. `nuzzle.content/md->hiccup` is an
important function that can be used to include markdown files for page
content.

Fixes #134