This example uses the data-object-yaml package to display YAML files as cleaned-up HTML. If you've read through the other tutorials, this one should be easy to follow.
> {-# LANGUAGE TypeFamilies, QuasiQuotes, TemplateHaskell, MultiParamTypeClasses, OverloadedStrings #-} > import Yesod > import Data.Object > import Data.Object.Yaml > import qualified Data.ByteString as B > import qualified Data.ByteString.Lazy as L > data PY = PY > type Handler = GHandler PY PY > mkYesod "PY" [$parseRoutes| > / Homepage GET POST > |] > instance Yesod PY where approot _ = "" > template :: Maybe (Hamlet url) -> Hamlet url > template myaml = [$hamlet| > !!! > > > > >