2 ms·
If I need a 1-file backend, I can pretty easily do this in Haskell. I have more trust in this still working next year also. {-# LANGUAGE OverloadedStrings
by yakshaving_jgt 2y ago
If I need a 1-file backend, I can pretty easily do this in Haskell. I have more trust in this still working next year also.
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
import Yesod
data App = App
mkYesod "App" [parseRoutes|
/ HomeR GET
|]
instance Yesod App
getHomeR :: Handler Html
getHomeR = defaultLayout [whamlet|Look at me. Just one file.|]
main :: IO ()
main = warp 3000 App
- TheRealPomax 2y agoAh yes. But let's make sure form posts actually work eh? How hard could it be to add CSRF to our pa- oh no https://github.com/yesodweb/yesod-cookbook/blob/master/cookbook/ajax-csrf.md https://github.com/yesodweb/yesod-cookbook/blob/master/cookb...
- yakshaving_jgt 2y agoRight. Add the middleware and use the yesod-form library. Pretty easy.