svandragt / cuttlefish

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

Remove hardcoded content dependency in Model::section #94

Closed svandragt closed 4 years ago

svandragt commented 4 years ago

Model section explicitly has loading mechanisms for metadata and markdown. This should be part of the metadata and derived markdown class implementation respectively. This can be achieved using a trait, I think. Then content includes #93 can use this mechanism to register themselves and provide a loader for a content section.

svandragt commented 4 years ago

Relates to #12