add simple, intermediate, advanced, and complex partial recipes
so this is a massive improvement on what's up there right now. that being said it's not perfect. i'd like to refactor to allow for an options hash on the advanced partial which would allow you to specify your templating engine and then use render... a la the complex partial recipe(included at the end) from padrino. but i think that can be another PR that comes later.
demo code is here, for now: https://github.com/ashleygwilliams/sinatra_partials_demo
I'd love to see line breaks in your files, will make reading it in the browser (I love small windows) a lot easier :)
Thank you for writing cool stuff for the recipes book!
@burningTyger hear ya loud and clear. good suggestion. i'll change it up :)
Hooray :thumbsup:
I'm afraid this recipe is getting rather long in the tooth, what do you think of splitting it up?
It would be interesting to add sub-directories to the recipe topics folders, to allow for multi-page oriented documents.
@zzak i totally agree, but yeah, there's not really a sub-directory template set up. i figure, let's get the content up there and then refactor to split it up once we decide how we want to do it.
the current content is wrong/out-of-date, so the sooner the better re: new content i think...
i'm happy to do the sub directories work. just think the content and the organization would be better as separate PRs
Totally, I didn't review the full recipe yet.
Sorry for going offtrack, lets make a new issue for subdirectories to get feedback from the rest of the crew
I would like to see the advanced_partial refactored, but I haven't yet thought about what it should look like.
Specifically think there is a better way than foo.is_a?(Bar) all over.
@ashleygwilliams I think this needs to be rebase, and also feel free to commit when you are happy :)