Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 366 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 366 Bytes

whiskers

Mustache templates with Template Haskell.

{-# LANGUAGE QuasiQuotes #-}

import Text.Whiskers

main :: IO ()
main = putStrLn [whiskers|
<!DOCTYPE html>
<html>
    <head>
        <title>Hello, {{ x }}!</title>
    </head>
    <body>
        <h1>This is {{ y }}.</h1>
    </body>
</html>
|] where x = "world"
         y = "whiskers"