--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sinatrarb/-/Y87Zr91buY8J.
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.
Hey,
Nice topic to see how people use Sinatra as well.
I usually stick to the following structure:
- Root
o Models
§ Init.rb
§ Mode files
o Routes
§ Init.rb
§ Route files
o Views
o Public
o Application.rb
o Config.ru
The config.ru file set’s up the variables such as the environment and root path for the application.
Application.rb defines the “server application” and all helper methods etc, no routes. The file then relies on require_relative to include the init files from models and routes.
All other folders should be self-explaining.
Arne De Herdt
Software Engineer
ProSiebenSat.1 Games GmbH
Ein Unternehmen der / A company of ProSiebenSat.1 Media AG
Medienallee 19
D-85774 Unterföhring
Tel. +49 [89] 9507-8808
Arne.d...@ProSiebenSat1Games.com
Geschäftsführer: Markus Büchtmann, Andreas Heyden, Achim Kaspers
Firmensitz / Company Residence: München / Munich, Germany
HRB 119657 AG München / Local Court in Munich, Germany
DAZ--
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sinatrarb/-/q43II51Zm_4J.
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.
Angel, the code generation tool is used only in-house currently; but i plan to release it as open source soon;
Everybody out there using sinatra - What would you like to see most in a meta programming /code generation framework and initial repository?
I’m doing a (free) meta programming, code generation framework (just a hobby, won’t be big and professional) for sinatra. This has been brewing
since november 2010, and is starting to get ready. I’d like any feedback on things people like/dislike on top of sinatra/(or rails), as my framework resembles/exceeds rails meta programming somewhat and repeats rack middleware architecture on the other hand;
We’ve currently developed a dozen projects and things seem to work. This implies that I’ll get something practical to release within a few months, and I’d like to know what features most people would want in a tool for the laziest programmers. Any suggestions are welcome, but I won’t promise I’ll implement them
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sinatrarb/-/q43II51Zm_4J.
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sinatrarb/-/bBqTfgmGa40J.
Hi fellow Sinatra users!I'm researching an article for RubySource highlighting the flexibility that Sinatra offers - ie you can literally choose how to structure your projects.I was hoping some of you would be able to help me out by telling me about any patterns that you use when using Sinatra? In particular:
- Do you have a set folder structure or coding patterns?
- Do you tend to use classic or modular style?
- Do you use any bootstrap code?
- Do you ever use inline-views?
- Anything else?
--