Skip to content

nejstastnejsistene/whiskers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Moustache templates with Template Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published