From 4a1829c0c5a2c67bd28466f21291720f03349162 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 21 Jan 2012 15:43:47 -0500 Subject: [PATCH] dynamic links to stylesheets --- pages/index.mako | 2 +- pages/support/header.mako | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/index.mako b/pages/index.mako index 1d1c60e..e6503a1 100644 --- a/pages/index.mako +++ b/pages/index.mako @@ -1,4 +1,4 @@ -<%include file="/support/header.mako" args="title='Index Page'"/> +<%include file="/support/header.mako" args="environ=environ, title='Home'"/>
% for key, value in environ.items():

${key}: ${value}

diff --git a/pages/support/header.mako b/pages/support/header.mako index 04f4107..c27d970 100644 --- a/pages/support/header.mako +++ b/pages/support/header.mako @@ -1,10 +1,14 @@ -<%page args="title"/>\ +<%page args="environ, title"/>\ +<%! + from os import path +%>\ +<% root = path.dirname(environ["SCRIPT_NAME"]) %>\ ${title} - earwig@toolserver - +
\ No newline at end of file