1{-# LANGUAGE OverloadedStrings #-}
2module ToHtml (compileToHtml) where
5import Data.Monoid (mempty)
7import Network.HTTP.Base (urlEncode)
8import Text.Blaze.Html5 hiding (map)
9import qualified Text.Blaze.Html5 as H
10import Text.Blaze.Html5.Attributes
11import qualified Text.Blaze.Html5.Attributes as A
14 reverse . takeWhile (/='/') . drop 1 . dropWhile (/='.') $ reverse fp
17compileToHtml :: String -> String -> String -> Html
18compileToHtml libLoc fileName source =
19 generateHtml libLoc (pageTitle fileName) (compileToJS source)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list