<%page args="environ, cookies, title, slug=None, add_css=(), add_js=()"/>\ <%namespace module="copyvios.background" import="set_background"/>\ <%! from os import path %>\ <% root = path.dirname(environ["SCRIPT_NAME"]) this = environ["PATH_INFO"] pretty = path.split(root)[0] if not slug: slug = path.split(this)[1] if slug.endswith(".fcgi"): slug = slug[:-5] %>\ ${title} <% selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" %>\ % if selected == "plain": % else: <% bg_url = set_background(cookies, selected) %>\ % endif