svandragt / cuttlefish

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

Route definitions #97

Closed svandragt closed 4 years ago

svandragt commented 4 years ago

Ala #96

Example content/config.toml

[routes]
admin = "ControllerAdmin"
archive = "ControllerArchive"
errors = "ControllerError"
feed = "ControllerFeed"
home = "ControllerHome"
images = "ControllerImage"
pages = "ControllerPage"
posts = "ControllerPost"

Could have posts = true which would translate into ControllerPost?

svandragt commented 4 years ago

Convention over configuration. Just create controllers