{"height":"190","author_name":"nwpct1","url":"https://nwpct1.hatenablog.com/entry/flask-jinja2","provider_name":"Hatena Blog","width":"100%","blog_title":"c-bata web","published":"2014-08-09 14:38:01","version":"1.0","categories":["Python","Web\u30a2\u30d7\u30ea","Flask"],"provider_url":"https://hatena.blog","title":"Jinja2\u30e1\u30e2","image_url":"http://ecx.images-amazon.com/images/I/51MiYDbJinL.jpg","blog_url":"https://nwpct1.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnwpct1.hatenablog.com%2Fentry%2Fflask-jinja2\" title=\"Jinja2\u30e1\u30e2 - c-bata web\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6700\u8fd1\u3001Flask\u3067Web\u30a2\u30d7\u30ea\u3092\u66f8\u3044\u305f\u308a\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u305a\u3064\u52c9\u5f37\u3057\u305f\u5185\u5bb9\u3092\u307e\u3068\u3081\u3066\u307f\u308b\u3002 \u4eca\u56de\u306fFlask\u3067\u63a1\u7528\u3055\u308c\u3066\u3044\u308bJinja2(\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3)\u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u3002 \u6761\u4ef6\u5206\u5c90 {% if flag == 1 %} <p>\u3042\u3044\u3046\u3048\u304a</p> {% elif flag == 2 %} <p>\u304b\u304d\u304f\u3051\u3053</p> {% else %} <p>\u3055\u3057\u3059\u305b\u305d</p> {% endif %} \u30ea\u30b9\u30c8\u3067\u30eb\u30fc\u30d7 {% for comment in comments %} <p>{{loop.index}} : {{comment}}</p> {% endfor %} \u4e0a\u306e\u4f8b\u306e\u3088\u3046\u306bloop.ind\u2026","author_url":"https://blog.hatena.ne.jp/nwpct1/","type":"rich"}