hellowidget working again

This commit is contained in:
Michael Snoyman 2010-10-13 15:26:48 +02:00
parent fde19d6291
commit d9ebdfca13

View File

@ -27,8 +27,11 @@ instance Yesod HW where
liftIO $ L.writeFile ("static/tmp/" ++ fn) content
return $ Just $ Right (StaticR $ StaticRoute ["tmp", fn] [], [])
type Handler = GHandler HW HW
instance YesodNic HW
instance YesodJquery HW
instance YesodJquery HW where
urlJqueryUiCss _ = Right $ googleHostedJqueryUiCss "ui-darkness"
wrapper h = [$hamlet|
#wrapper ^h^
%footer Brought to you by Yesod Widgets™
@ -109,7 +112,7 @@ textarea.html
main = basicHandler 3000 $ HW $ fileLookupDir "static" typeByExt
getAutoCompleteR :: Handler HW RepJson
getAutoCompleteR :: Handler RepJson
getAutoCompleteR = do
term <- runFormGet' $ stringInput "term"
jsonToRepJson $ jsonList