From 2282e78e9c9a6fd0919a13a11e070ac52cdce52f Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Fri, 18 Jun 2010 00:13:10 +0200 Subject: Allow markdown/tex/... in templates --- src/Text/Hakyll/Internal/Page.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Text/Hakyll/Internal/Page.hs') diff --git a/src/Text/Hakyll/Internal/Page.hs b/src/Text/Hakyll/Internal/Page.hs index 115bc09..e2998a5 100644 --- a/src/Text/Hakyll/Internal/Page.hs +++ b/src/Text/Hakyll/Internal/Page.hs @@ -22,8 +22,9 @@ import Text.Hakyll.Internal.FileType -- | Get a render function for a given extension. getRenderFunction :: FileType -> Hakyll (String -> String) -getRenderFunction Html = return id -getRenderFunction Text = return id +getRenderFunction Html = return id +getRenderFunction Text = return id +getRenderFunction UnknownFileType = return id getRenderFunction fileType = do parserState <- askHakyll pandocParserState writerOptions <- askHakyll pandocWriterOptions -- cgit v1.2.3