${self.head()} <% def inpath(req,menu): _path = req.fullpath if _path.endswith("/"): _path = _path[:-1] return _path in [ it['path'] for it in menu['items'] ] def aclass(req,path): _path = req.fullpath if _path.endswith("/"): _path = _path[:-1] return _path==path and 'sl-active' or '' %>