ff0000/django-start — Issue #13: Requesting {{ PAGE }} var for Django-Start for better integration with RBP / Rosy
Author: potench
Created: 2011-10-13 17:48:37+00:00
State: open

## Request

Add a variable `{{ PAGE }}` to Django-start and provide the ability to manage the value of this variable.

## Use-case

In the red-boilerplate (RBP), we use a [{{ PAGE }} variable ](https://github.com/ff0000/red-boilerplate/blob/master/project/templates/base.html#L41) to
* Enable page-level targeting in our CSS
* (ex: `body.home {}` or `body.about {}`)
* Instantiate a [Rosy page instance](https://github.com/ff0000/rosy/blob/master/example/site.js#L34-39) specific to the page
* (ex: `new Example.Page.Home()` or 'new Example.Page.About()' or defaults to `new Example.Page()`)

The `{{ PAGE }}` is simply representative of the current page ( i.e. "Home", "About" , "Blog").

## Implementation

We'd like to hear your thoughts on implementing this variable, (would it be managed from the CMS or from the py-code etc etc? )

If you have any other questions about it's use or intention let us know. It's fairly crucial to the CSS and JS architecture of our sites, so it would be awesome if you would prioritize the inclusion of this variable =)