Update README to explain multi-file page functionality Add example content files demonstrating the feature Improve folder type detection logic Implement new routing for page-type folders Add support for mixed content types in single pages Update navigation and metadata handling for multi-file pages Remove legacy frontpage.php in favor of multi-file approach Improve file-based routing documentation Add examples of different content types working together Update router to handle multi-file content rendering Implement proper sorting of content files Add best practices for multi-file content organization
14 lines
624 B
Markdown
14 lines
624 B
Markdown
# Multi-File Content Pages
|
|
|
|
One of FolderWeb's most powerful features is the ability to compose a single page from multiple content files. This gives you flexibility in how you organize and author your content.
|
|
|
|
## How It Works
|
|
|
|
When a folder contains **no subdirectories**, FolderWeb treats it as a **page-type folder**. All `.md`, `.html`, and `.php` files in that folder are rendered in **alphanumerical order**.
|
|
|
|
This means you can:
|
|
|
|
- Break long content into manageable sections
|
|
- Mix file formats freely (Markdown, HTML, PHP)
|
|
- Reorder sections by renaming files
|
|
- Include dynamic PHP content alongside static content
|