hakyll-0.2: A simple static site generator library.Source codeContentsIndex
Text.Hakyll.Util
Synopsis
toDestination :: FilePath -> FilePath
toCache :: FilePath -> FilePath
toURL :: FilePath -> FilePath
makeDirectories :: FilePath -> IO ()
getRecursiveContents :: FilePath -> IO [FilePath]
trim :: String -> String
split :: Eq a => a -> [a] -> [[a]]
isCacheValid :: FilePath -> [FilePath] -> IO Bool
Documentation
toDestination :: FilePath -> FilePathSource
Convert a relative filepath to a filepath in the destination (_site).
toCache :: FilePath -> FilePathSource
Convert a relative filepath to a filepath in the cache (_cache).
toURL :: FilePath -> FilePathSource
Get the url for a given page.
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.
isCacheValid :: FilePath -> [FilePath] -> IO BoolSource
Check is a cache file is still valid.
Produced by Haddock version 2.6.0