Exactly! I was looking for addWidget.
I'll give it a shot at providing my own html also, I'll let you know my final solution.
Thank you all guys.
cheers
----nubis :)
Regarding your error, I think you want addWidget instead of addHamlet.
This compiles for me:
addWidget $(hamletFile "login")
loginHandler = do
let tm = liftHandler getRouteToMaster
let email = tm >>= apLogin authEmail
defaultLayout $ do
setTitle $ string "Login"
-matt