svandragt / cuttlefish

Hackable web framework (wip)
https://vandragt.com/tag/cuttlefish
MIT License
8 stars 2 forks source link

Content Type definitions #96

Closed svandragt closed 3 years ago

svandragt commented 4 years ago

ala Lektor.

Something like this content/posts.toml

[sections]
metadata = "MetadataReader"
markdown = "MarkdownReader"

[config]
location="posts"
name="Posts"
validate=true
svandragt commented 4 years ago

Sections seem like they fit better in PHP code. Perhaps the configuration.php file should be part of content.

svandragt commented 3 years ago

Cuttlefish writes Models with $fields that describe the content types.