Wytch::ContentLoader

Discovers and loads content files into Page objects.

Description

Discovers and loads content files into Page objects.

The ContentLoader scans the content directory for Ruby files and instantiates Page objects for each one. It uses the configured page_class from the Site.

Methods

def load_content

Loads all content files and returns a hash of pages.

Scans the content directory recursively for .rb files, creates a Page instance for each, and returns them keyed by path.

Returns:
(Hash{String => Page}) — pages keyed by their URL path