El ene 2, 2014 1:11 p.m., "Ruud Schroen" escribió:
> Hi,
>
> I want to add a class to the body depending on the controller and function
> (like Drupal does for example).
>
> My function (in db.py):
> def get_page_class():
> page_class = 'page-%s-%s' % (request.controller, request.function)
>
Hi,
I want to add a class to the body depending on the controller and function
(like Drupal does for example).
My function (in db.py):
def get_page_class():
page_class = 'page-%s-%s' % (request.controller, request.function)
return page_class
And in my view:
Now when i load the page, t
2 matches
Mail list logo