{"id":3189,"date":"2010-04-22T14:01:25","date_gmt":"2010-04-22T05:01:25","guid":{"rendered":"http:\/\/www.gesource.jp\/weblog\/?p=3189"},"modified":"2017-07-16T15:57:06","modified_gmt":"2017-07-16T06:57:06","slug":"google-app-engine%e7%94%a8%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%80%8ckay%e3%80%8d%e3%81%a7%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%92%e3%82%b9%e3%83%88%e3%83%a9%e3%82%a4","status":"publish","type":"post","link":"https:\/\/www.gesource.jp\/weblog\/?p=3189","title":{"rendered":"Google App Engine\u7528\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cKay\u300d\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u30b9\u30c8\u30e9\u30a4\u30d7\u306b\u3059\u308b"},"content":{"rendered":"<p><iframe src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=gesource-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4048676938\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n<p>Google App Engine\u7528\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300c<a href=\"http:\/\/code.google.com\/p\/kay-framework\/\" title=\"kay-framework\">Kay<\/a>\u300d\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u30b9\u30c8\u30e9\u30a4\u30d7\u306b\u3059\u308b\u65b9\u6cd5\u3002<\/p>\n<p>\u300c<a href=\"http:\/\/code.google.com\/p\/kay-framework\/\" title=\"kay-framework\">Kay<\/a>\u300d\u3067\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306bJinja2\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Jinja2\u306e\u30d8\u30eb\u30d1\u30fc\u95a2\u6570\u300c<a href=\"http:\/\/jinja.pocoo.org\/2\/documentation\/templates#for\">loop.cycle<\/a>\u300d\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u7c21\u5358\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u30b9\u30c8\u30e9\u30a4\u30d7\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>&lt;table&gt;\n{% for row in rows %}\n  &lt;tr class=\"{{ loop.cycle('odd', 'even') }}\"&gt;\n    &lt;td&gt;\u2026&lt;\/td&gt;\n  &lt;\/tr&gt;\n{% endfor %}\n&lt;\/table&gt;\n<\/code><\/pre>\n<p>loop.cycle\u306e\u5f15\u6570\u306b\u306f\u30012\u3064\u306b\u9650\u308a\u307e\u305b\u3093\u3002<br \/>\n3\u3064\u4ee5\u4e0a\u306e\u5f15\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>&lt;table&gt;\n{% for row in rows %}\n  &lt;tr class=\"{{ loop.cycle('line1', 'line2', 'line3', 'line4') }}\"&gt;\n    &lt;td&gt;\u2026&lt;\/td&gt;\n  &lt;\/tr&gt;\n{% endfor %}\n&lt;\/table&gt;\n<\/code><\/pre>\n<p><iframe src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=gesource-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4774141275\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google App Engine\u7528\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cKay\u300d\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u30b9\u30c8\u30e9\u30a4\u30d7\u306b\u3059\u308b\u65b9\u6cd5\u3002 \u300cKay\u300d\u3067\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306bJinja2\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002 Jinja2\u306e\u30d8\u30eb\u30d1\u30fc\u95a2\u6570\u300cloop.cycle\u300d\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001 &#8230;<\/p>\n<p><a href=\"https:\/\/www.gesource.jp\/weblog\/?p=3189\" class=\"more-link\">Continue reading &lsquo;Google App Engine\u7528\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cKay\u300d\u3067\u30c6\u30fc\u30d6\u30eb\u3092\u30b9\u30c8\u30e9\u30a4\u30d7\u306b\u3059\u308b&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[96,95,7],"tags":[68,94,143],"class_list":["post-3189","post","type-post","status-publish","format-standard","hentry","category-googleappengine","category-kay-programming","category-python","tag-google-app-engine","tag-kay","tag-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/3189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3189"}],"version-history":[{"count":0,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/3189\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}