hakyll-process

Exposes Hakyll compilers for passing file paths to external processes. Transformed results are made available as Hakyll Items.


Keywords
library, web, Propose Tags , Hakyll.Process
License
BSD-3-Clause
Install
cabal install hakyll-process

Documentation

hakyll-process

Hakyll compilers for passing Hakyll items to external processes. This is useful for tools that do not have Haskell bindings or may not make sense to have Haskell bindings, like Typescript or LaTex compilers.

Example Usage:

This example shows how this library can be used to include latex files in your site source and include the output pdf in your target site.

import           Hakyll.Process

main = do
  hakyll $ do
    match "resume/*.tex" $ do
      route   $ setExtension "pdf"
      compile $ execCompilerWith (execName "xelatex") [ProcArg "-output-directory=resume/", HakFilePath] (newExtOutFilePath ("pdf"))