lonelyplanet/rizzo — pull request #784 by bentedder (2014-06-27 20:44:20+00:00)
Title: add route for custom layouts (LP India, etc)

check this sorcery out. a /custom/xyz route for defining a layout for any # of custom layouts. it's a work in progress, but essentially lets us turn on and off features of the rizzo layout using a master config file. it comes with a snippet route, as well as a main "preview" route that shows the put-together project.

**how to use it:**
get rizzo up and running and go to /custom/india. then go in the app/lib/layout_support.rb and turn false/true a few of the features and refresh the page to see how it works. the beauty is that there is an unlimited number of routes that you can create using that config file, without a need to create more files.

instead of modifying existing snippets (a bit more dangerous), i've slowly been copying and modifying them into the /custom/snippets folder. this way i can test for the existence and truthfulness of properties and determine when to show/hide certain features.

thoughts and ideas welcome.