在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):yesodweb/yesod开源软件地址(OpenSource Url):https://github.com/yesodweb/yesod开源编程语言(OpenSource Language):Haskell 99.6%开源软件介绍(OpenSource Introduction):Yesod Web FrameworkAn advanced web framework using the Haskell programming language. Featuring:
Getting StartedLearn more about Yesod on its main website. If you want to get started using Yesod, we strongly recommend the quick start guide, based on the Haskell build tool stack. Here's a minimal example! {-# LANGUAGE OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies #-}
import Yesod
data App = App -- Put your config, database connection pool, etc. in here.
-- Derive routes and instances for App.
mkYesod "App" [parseRoutes|
/ HomeR GET
|]
instance Yesod App -- Methods in here can be overridden as needed.
-- The handler for the GET request at /, corresponds to HomeR.
getHomeR :: Handler Html
getHomeR = defaultLayout [whamlet|Hello World!|]
main :: IO ()
main = warp 3000 App To read about each of the concepts in use above (routing, handlers, linking, JSON), in detail, visit Basics in the Yesod book. Hacking on YesodYesod consists mostly of four repositories: git clone --recurse-submodules http://github.com/yesodweb/shakespeare
git clone --recurse-submodules http://github.com/yesodweb/persistent
git clone --recurse-submodules http://github.com/yesodweb/wai
git clone --recurse-submodules http://github.com/yesodweb/yesod Each repository can be built with |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论