Akmuhammet J.
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To post to this group, send email to sina...@googlegroups.com.
To unsubscribe from this group, send email to sinatrarb+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sinatrarb?hl=en.
Different approaches:
- Just split up the files (can get messy soon, too) and load those files.
- Use sinatra-namespace (though this is more for organizing larger files).
- Use modular apps with a router:
- General idea: https://gist.github.com/ae3b731e4374c86a18bf
- Making it part of the classes: https://gist.github.com/970108
- Real world examples:
- Using modular apps with middleware: https://gist.github.com/643c42c1280005abb1a3
Cheers,
- Using modular apps with a cascade: https://gist.github.com/b2b49b3cd527487d36c9
Konstantin
Akmuhammet J.
--