[flexiblize browsedir
thomashartman1@gmail.com**20081004141813] hunk ./src/Controller.hs 146
+
hunk ./src/HAppSBrowse.hs 26
- --let fs1 = map g fs
- -- where g f = diralias ++ (drop (length d) f)
- let flinks = map g . filter (not . boringfile ) . sort $ fs
- where g f = simpleLink ('/' : (combine aliaspath f)) f
- return . toResponse . HtmlString $ "
" ++ realpath ++ "
\n" ++ concatMap li flinks ++ "
" ++ anchor ++ ""
+ where -- paintdir/paintfile are monadic for optional IO
+ paintfile f = return f --
+ paintdir aliaspath fs =
+ let flinks = map g . filter (not . boringfile ) . sort $ fs
+ g f = simpleLink ('/' : (combine aliaspath f)) f
+ in return $ HtmlString $ "" ++ aliaspath ++ "
\n" ++ concatMap li flinks ++ "
"
+
+ simpleLink url anchor = "" ++ anchor ++ ""
hunk ./src/HAppSBrowse.hs 52
+
+