DocumentFolder

struct defined in module Pollen


			DocumentFolder(dirs; kwargs...) <: Rewriter

A Rewriter that creates new documents from files in the directories dirs.

Also handles watching and reloading files in development mode.

See DocumentFiles and SourceFiles as examples of how it is used.

Keyword arguments

  • filterfn: Function filepath -> Bool that filters which files are loaded

  • loadfn: Function filepath -> Node that loads a file into a Node

Methods