[table of contents bling -- menu item lit when selected thomashartman1@gmail.com**20080906143027] hunk ./src/View.hs 16 - header <- getHeaderArea contentTmpl mbLoggedInAs + let kvMenustyleActivelink = getMenuCssStyles contentTmpl + header <- getHeaderArea contentTmpl mbLoggedInAs kvMenustyleActivelink + toc <- getTableOfContentsArea contentTmpl kvMenustyleActivelink hunk ./src/View.hs 20 - =<< renderTemplateDir "templates" ( [("contentarea",content),("headerarea",header)] ++ attrs) "base" + =<< renderTemplateDir "templates" ( [("tocarea",toc) + , ("contentarea",content) + , ("headerarea",header)] ++ attrs) "base" hunk ./src/View.hs 26 -getHeaderArea contentTmpl mbLoggedInAs = do - let kvMenustyleActivelink = getMenuCssStyles contentTmpl +-- this should really take a request arg, not mbLogged inAs. +getHeaderArea contentTmpl mbLoggedInAs kvMenustyleActivelink = do hunk ./src/View.hs 35 +getTableOfContentsArea contentTmpl kvMenustyleActivelink = + renderTemplateDir "templates" kvMenustyleActivelink "tableofcontents" + hunk ./src/View.hs 49 +-- In header and table of contents menus: hunk ./src/View.hs 51 --- "menuItem" is default +-- style "menuItem" is default hunk ./src/View.hs 70 + , "prerequisites" + , "overview" + , "run-tutorial-locally" + , "main-function" + , "basic-url-handling" + , "templates-dont-repeat-yourself" hunk ./templates/base.st 15 - +
$ tableofcontents() $
addfile ./templates/errortemplate.st hunk ./templates/errortemplate.st 1 - + + $ errormsg $ + addfile ./templates/tableofcontents.st hunk ./templates/tableofcontents.st 1 + +
$ tocarea $