{"id":2891,"date":"2013-07-02T08:58:00","date_gmt":"2013-07-01T23:58:00","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=2891"},"modified":"2018-11-14T16:33:54","modified_gmt":"2018-11-14T07:33:54","slug":"yesod%e5%85%a5%e9%96%80-3-handler-%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%8b%e3%82%89-shakespearean-templates-%e3%81%ab%e3%82%88%e3%82%8b-view-%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%be%e3%81%a7","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2013\/07\/02\/yesod%e5%85%a5%e9%96%80-3-handler-%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%8b%e3%82%89-shakespearean-templates-%e3%81%ab%e3%82%88%e3%82%8b-view-%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%be%e3%81%a7\/","title":{"rendered":"Yesod\u5165\u9580 (3) Handler \u306e\u4f5c\u6210\u304b\u3089 Shakespearean Templates \u306b\u3088\u308b View \u306e\u4f5c\u6210\u307e\u3067"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Yesod \u5165\u9580\u306e\u7b2c 3 \u56de\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f Handler \u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u59cb\u3081\u3066\u3001\u5404\u7a2e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u884c\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>yesod add-handler \u306b\u3088\u308b Handler \u306e\u751f\u6210<\/h2>\n<p>yesod \u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u306b add-handler \u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068 Handler \u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Ruby on Rails \u306b\u304a\u3051\u308b scaffold \u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true\">yesod add-handler<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u4f5c\u6210\u3059\u308b Handler \u306e\u540d\u524d\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u300cHello\u300d\u3068\u5165\u529b\u3057\u3066\u5148\u306b\u9032\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true\">Name of route (without trailing R): Hello<\/pre>\n<p>\u3061\u306a\u307f\u306b Yesod \u3067\u306f Handler \u306e\u540d\u524d\u306f\u300cR\u300d\u3067\u7d42\u308f\u308b\u6c7a\u307e\u308a\u304c\u3042\u308a\u307e\u3059\uff08\u300cResource\u300d\u306e\u300cR\u300d\u3067\u3059\uff09\u3002<\/p>\n<p>\u7d9a\u3051\u3066 URL \u306e\u30d1\u30b9\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u300c\/hello\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Enter route pattern (ex: \/entry\/#EntryId): \/hello<\/pre>\n<p>\u6700\u5f8c\u306b\u8a31\u53ef\u3059\u308b HTTP \u306e\u30e1\u30bd\u30c3\u30c9\u306e\u6307\u5b9a\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u300cGET\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Enter space-separated list of methods (ex: GET POST): GET<\/pre>\n<p>\u3053\u3053\u307e\u3067\u5165\u529b\u3059\u308b\u3068\u3001\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u751f\u6210\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u4f5c\u6210: Handler\/Hello.hs<\/li>\n<li>\u5909\u66f4: config\/routes<\/li>\n<li>\u5909\u66f4: Application.hs<\/li>\n<li>\u5909\u66f4: hello-yesod.cabal<\/li>\n<\/ul>\n<p>Handler\/Hello.hs \u306f\u4f5c\u6210\u3057\u305f Handler \u306e\u30b3\u30fc\u30c9\u304c\u542b\u307e\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<p>config\/routes \u306b\u306f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u60c5\u5831\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Application.hs \u3068 hello-yesod.cabal \u306b\u306f Handler\/Hello.hs \u3067\u5b9a\u7fa9\u3055\u308c\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Handler<\/h2>\n<p>Handler\/Hello.hs \u3092\u958b\u3044\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:haskell decode:true\">module Handler.Hello where\r\n\r\nimport Import\r\n\r\ngetHelloR :: Handler Html\r\ngetHelloR = error \"Not yet implemented: getHelloR\"<\/pre>\n<p>\u30b3\u30fc\u30c9\u751f\u6210\u76f4\u5f8c\u306e\u5b9f\u88c5\u306f\u300cgetHelloR = error \"Not yet implemented: getHelloR\"\u300d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\uff08yesod devel\uff09\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3059\u308b\u3068\u300cNot yet implemented: getHelloR\u300d\u3068\u66f8\u304b\u308c\u305f\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello1.png\" rel=\"facebox\" rel=\"attachment wp-att-2933\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-2933\" style=\"border: 2px solid black;\" alt=\"yesod-hello1\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello1-300x137.png\" width=\"300\" height=\"137\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello1-300x137.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello1.png 559w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Handler\/Hello.hs \u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\uff08\u6700\u5f8c\u306e\u884c\u3092\u5909\u66f4\u3057\u307e\u3059\uff09\u3002<\/p>\n<pre class=\"lang:haskell decode:true\">module Handler.Hello where\r\n\r\nimport Import\r\n\r\ngetHelloR :: Handler Html\r\ngetHelloR = defaultLayout $(widgetFile \"hello\")<\/pre>\n<p>\u6700\u5f8c\u306e 1 \u884c\u3092\u300cdefaultLayout $(widgetFile \"hello\")\u300d\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067 templates\/hello.hamlet \u3092\u4f7f\u7528\u3057\u3066\u753b\u9762\u304c\u751f\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff08templates\/hello.hamlet \u306f\u5f8c\u307b\u3069\u4f5c\u6210\u3057\u307e\u3059\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>View<\/h2>\n<p>Yesod \u3067\u306f View \u306b\u95a2\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092 templates \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Shakespearean Templates<\/h3>\n<p>View \u306b\u306f\u300cShakespearean Templates\u300d\u307e\u305f\u306f\u300cShakespearean \u30d5\u30a1\u30df\u30ea\u30fc\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u300d\u3068\u547c\u3070\u308c\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Shakespearean Templates \u306f\u5168\u90e8\u3067 4 \u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Hamlet<br \/>\nHTML \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3059\u3002<br \/>\n\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3088\u3063\u3066\u30bf\u30b0\u306e\u5165\u308c\u5b50\u3092\u8868\u73fe\u3057\u307e\u3059\u3002<\/li>\n<li>Cassius<br \/>\nCSS \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3059\u3002<br \/>\n\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3088\u3063\u3066\u5165\u308c\u5b50\u3092\u8868\u73fe\u3057\u307e\u3059\u3002<\/li>\n<li>Lucius<br \/>\n\u3053\u3061\u3089\u3082 CSS \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3059\u3002<br \/>\nCassius \u3068\u306f\u7570\u306a\u308a\u3001CSS \u306e\u30b9\u30fc\u30d1\u30fc\u30bb\u30c3\u30c8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/li>\n<li>Julius<br \/>\nJavascript \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3059\u3002<br \/>\n\u307b\u3068\u3093\u3069 Javascript \u3068\u540c\u3058\u3067\u3059\u304c\u3001\u5909\u6570\u88dc\u9593\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306f\u3069\u308c\u3082\u3001\u5909\u6570\u88dc\u9593\uff08Haskell \u5074\u3067\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u306e\u5024\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u57cb\u3081\u8fbc\u3080\u6a5f\u80fd\uff09\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001CSS \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306f Cassius \u3068 Lucius \u306e 2 \u3064\u3042\u308a\u307e\u3059\u3002\u3069\u3061\u3089\u3092\u4f7f\u7528\u3057\u3066\u3082\u826f\u3044\u3067\u3059\u304c\u3001Lucius \u306f CSS \u306e\u30b9\u30fc\u30d1\u30fc\u30bb\u30c3\u30c8\u306a\u306e\u3067\u3001\u65e2\u5b58\u306e CSS \u3092\u53d6\u308a\u8fbc\u3080\u5834\u5408\u306f Lucius \u3092\u9078\u629e\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Hamlet (HTML)<\/h3>\n<p>\u305d\u308c\u3067\u306f HTML \u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>templates\/hello.hamlet \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">&lt;h1&gt;\u4e16\u754c\u306e\u8a00\u8a9e\u3067\u6328\u62f6\u3057\u307e\u3059\r\n\r\n&lt;h2&gt;\u51fa\u4f1a\u3044\u306e\u6328\u62f6\r\n&lt;ul&gt;\r\n    &lt;li class=\"english\"&gt;Hello\r\n    &lt;li class=\"chinese\"&gt;\u30cb\u30fc\u30cf\u30aa\r\n    &lt;li class=\"hindi\"&gt;\u30ca\u30de\u30b9\u30c6\r\n    &lt;li class=\"japanese\"&gt;\u3053\u3093\u306b\u3061\u306f\r\n\r\n&lt;h2&gt;\u5225\u308c\u306e\u6328\u62f6\r\n&lt;ul&gt;\r\n    &lt;li class=\"english\"&gt;Goodbye\r\n    &lt;li class=\"chinese\"&gt;\u518d\u898b\r\n    &lt;li class=\"hindi\"&gt;\u30ca\u30de\u30b9\u30c6\r\n    &lt;li class=\"japanese\"&gt;\u3055\u3088\u3046\u306a\u3089<\/pre>\n<p>HTML \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u300cHamlet\u300d\u3067\u306f\u3001\u30bf\u30b0\u306e\u5165\u308c\u5b50\u69cb\u9020\u3092\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3088\u3063\u3066\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u9589\u3058\u30bf\u30b0\uff08\u300c&lt;li&gt;\u300d\u306b\u5bfe\u3059\u308b\u300c&lt;\/li&gt;\u300d\uff09\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3059\u308b\u3068\u3001\u3053\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello2.png\" rel=\"facebox\" rel=\"attachment wp-att-2934\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-2934\" style=\"border: 2px solid black;\" alt=\"yesod-hello2\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello2-300x99.png\" width=\"300\" height=\"99\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello2-300x99.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello2.png 940w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Cassius (CSS)<\/h3>\n<p>\u6b21\u306b CSS \u3067\u30c7\u30b6\u30a4\u30f3\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>CSS \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306f\u300cCassius\u300d\u3068\u300cLucius\u300d\u306e 2 \u3064\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f Cassius \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>templates\/hello.cassius \u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">ul\r\n    li.english\r\n        color: blue;\r\n    li.chinese\r\n        color: green;\r\n    li.hindi\r\n        color: brown;\r\n    li.japanese\r\n        color: red;<\/pre>\n<p>Cassius \u3082 Hamlet \u3068\u540c\u69d8\u306b\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u3067\u5165\u308c\u5b50\u69cb\u9020\u3092\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p>\u56fd\u5225\u306b\u6587\u5b57\u8272\u3092\u5909\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello3.png\" rel=\"facebox\" rel=\"attachment wp-att-2935\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-2935\" style=\"border: 2px solid black;\" alt=\"yesod-hello3\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello3-300x99.png\" width=\"300\" height=\"99\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello3-300x99.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello3.png 940w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Lucius<\/h3>\n<p>\u3061\u306a\u307f\u306b\u3082\u3046\u4e00\u3064\u306e CSS \u7528\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3042\u308b\u300cLucius\u300d\u3067\u66f8\u304f\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">ul {\r\n    li.english {\r\n        color: blue;\r\n    }\r\n    li.chinese {\r\n        color: green;\r\n    }\r\n    li.hindi {\r\n        color: brown;\r\n    }\r\n    li.japanese {\r\n        color: red;\r\n    }\r\n}<\/pre>\n<p>Cassius \u3068\u306f\u7570\u306a\u308a\u3001\u5165\u308c\u5b50\u69cb\u9020\u306f\u30a4\u30f3\u30c7\u30f3\u30c8\u3067\u306f\u306a\u304f\u300c{ ... }\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Lucius \u306f CSS \u306e\u30b9\u30fc\u30d1\u30fc\u30bb\u30c3\u30c8\u306a\u306e\u3067\u3001\u6b21\u306e\u3088\u3046\u306b CSS \u3092\u305d\u306e\u307e\u307e\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:css decode:true\">ul li.english {\r\n    color: blue;\r\n}\r\nul li.chinese {\r\n    color: green;\r\n}\r\n\r\nul li.hindi {\r\n    color: brown;\r\n}\r\n\r\nul li.japanese {\r\n    color: red;\r\n}<\/pre>\n<p>Lucius \u3067\u66f8\u304f\u5834\u5408\u306f\u3001templates\/hello.lucius \u3068\u3044\u3046\u540d\u524d\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>Julius (Javascript)<\/h3>\n<p>\u6700\u5f8c\u306b Javascript \u7528\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3001\u300cJulius\u300d\u3092\u4f7f\u7528\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>templates\/hello.julius \u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">document.write(\"Written by Javascript!\".fontsize(5));<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello4.png\" rel=\"facebox\" rel=\"attachment wp-att-2936\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-2936\" style=\"border: 2px solid black;\" alt=\"yesod-hello4\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello4-300x108.png\" width=\"300\" height=\"108\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello4-300x108.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2013\/06\/yesod-hello4.png 940w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Handler \u306e\u4f5c\u6210\u304b\u3089\u3001\u5404\u7a2e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u307e\u3067\u898b\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306f 4 \u7a2e\u985e\u3082\u3042\u308b\u306e\u3067\u3084\u3084\u3053\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u5358\u7d14\u306a\u30da\u30fc\u30b8\u306f\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u6271\u3044\u65b9\u3084\u8907\u6570\u30da\u30fc\u30b8\u9593\u306e\u30ea\u30f3\u30af\u65b9\u6cd5\u306a\u3069\u306f\u307e\u3060\u77e5\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u56de\u4ee5\u964d\u306b\u307c\u3061\u307c\u3061\u8abf\u3079\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Enjoy Yesod!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u9234\u6728\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Yesod \u5165\u9580\u306e\u7b2c 3 \u56de\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f Handler \u306e\u4f5c\u6210\u65b9\u6cd5\u304b\u3089\u59cb\u3081\u3066\u3001\u5404\u7a2e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306a\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u884c\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2013\/07\/02\/yesod%e5%85%a5%e9%96%80-3-handler-%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%8b%e3%82%89-shakespearean-templates-%e3%81%ab%e3%82%88%e3%82%8b-view-%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%be%e3%81%a7\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[102,18,84],"tags":[99,100],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2891"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=2891"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2891\/revisions"}],"predecessor-version":[{"id":17921,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/2891\/revisions\/17921"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=2891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=2891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=2891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}