bridgetownrb / bridgetown

A next-generation progressive site generator & fullstack framework, powered by Ruby
https://www.bridgetownrb.com
MIT License
1.16k stars 112 forks source link

feat: Ensure gems can opt into the file-based routing system #568

Closed jaredcwhite closed 2 years ago

jaredcwhite commented 2 years ago

Right now bridgetown-routes only loads files in src/_routes. It'd be great to make that extensible so gems can opt-into the routing system as well. If there's ever to be an official "admin" CMS-y sort of plugin, we'd need this feature to be in place ahead of time.

jaredcwhite commented 2 years ago

This will get addressed in #618

jaredcwhite commented 2 years ago

I think we need to add docs, but this is working now in v1.2.

init :"bridgetown-routes"
routes.source_paths << "_alt_routes"