HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulemicrostache-1.0.3Haskell2010

Text.Microstache.Compile

Mustache Template creation from file or a Text value. You don't usually need to import the module, because Text.Microstache re-exports everything you may need, import that module instead.

  • 4 values
  • Packagemicrostache-1.0.3
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCompile.hs
valuecompileMustacheDir
  1. :: PName

    Which template to select after compiling

  2. -> FilePath

    Directory with templates

  3. -> IO Template

    The resulting template

#

Compile all templates in specified directory and select one. Template files should have extension mustache, (e.g. foo.mustache) to be recognized. This function does not scan the directory recursively.

The action can throw the same exceptions as getDirectoryContents, and T.readFile.