hakyll-0.1: A simple static site generator library.Source codeContentsIndex
Text.Hakyll.Util
Synopsis
toDestination :: FilePath -> FilePath
toCache :: FilePath -> FilePath
makeDirectories :: FilePath -> IO ()
getRecursiveContents :: FilePath -> IO [FilePath]
trim :: String -> String
split :: Eq a => a -> [a] -> [[a]]
isCacheFileValid :: FilePath -> FilePath -> IO Bool
Documentation
toDestination :: FilePath -> FilePathSource
toCache :: FilePath -> FilePathSource
makeDirectories :: FilePath -> IO ()Source
Given a path to a file, try to make the path writable by making all directories on the path.
getRecursiveContents :: FilePath -> IO [FilePath]Source
Get all contents of a directory. Note that files starting with a dot (.) will be ignored.
trim :: String -> StringSource
Trim a string (drop spaces and tabs at both sides).
split :: Eq a => a -> [a] -> [[a]]Source
Split a list at a certain element.
isCacheFileValid :: FilePath -> FilePath -> IO BoolSource
Check is a cache file is still valid.
Produced by Haddock version 2.6.0