{"id":142,"date":"2024-09-11T16:57:20","date_gmt":"2024-09-11T07:57:20","guid":{"rendered":"https:\/\/dexall.co.jp\/articles\/?p=142"},"modified":"2025-03-24T08:55:00","modified_gmt":"2025-03-23T23:55:00","slug":"ruby%e9%96%8b%e7%99%ba%e8%80%85%e5%bf%85%e8%a6%8b%ef%bc%81haml%e3%81%a7%e5%ae%9f%e7%8f%be%e3%81%99%e3%82%8b5%e3%81%a4%e3%81%ae%e9%a9%9a%e3%81%8d%e3%81%ae%e7%94%9f%e7%94%a3%e6%80%a7%e5%90%91%e4%b8%8a","status":"publish","type":"post","link":"https:\/\/dexall.co.jp\/articles\/?p=142","title":{"rendered":"Ruby\u958b\u767a\u8005\u5fc5\u898b\uff01Haml\u3067\u5b9f\u73fe\u3059\u308b5\u3064\u306e\u9a5a\u304d\u306e\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af"},"content":{"rendered":"\n<p>Haml\u306f\u3001Ruby on Rails\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u5f37\u529b\u306a\u30d3\u30e5\u30fc\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3059\u3002<br>HTML\u306e\u7169\u308f\u3057\u3055\u304b\u3089\u89e3\u653e\u3055\u308c\u3001\u3088\u308a\u7c21\u6f54\u3067\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Haml\u306e\u57fa\u672c\u304b\u3089\u9ad8\u5ea6\u306a\u4f7f\u3044\u65b9\u307e\u3067\u3001\u5b9f\u8df5\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3068\u6ce8\u610f\u70b9\u3092\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u3053\u306e\u8a18\u4e8b\u3092\u901a\u3057\u3066\u7406\u89e3\u3067\u304d\u308b8\u3064\u306e\u3053\u3068<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ul class=\"wp-block-list\">\n<li>Haml\u306e\u57fa\u672c\u6982\u5ff5\u3068\u7279\u5fb4<\/li>\n\n\n\n<li>Haml\u3092\u4f7f\u3063\u305f5\u3064\u306e\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af<\/li>\n\n\n\n<li>ERB\u304b\u3089Haml\u3078\u306e\u52b9\u679c\u7684\u306a\u79fb\u884c\u65b9\u6cd5<\/li>\n\n\n\n<li>HamlLint\u3092\u4f7f\u7528\u3057\u305f\u30b3\u30fc\u30c9\u54c1\u8cea\u306e\u7dad\u6301\u65b9\u6cd5<\/li>\n\n\n\n<li>Haml\u5c0e\u5165\u6642\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u6ce8\u610f\u70b9<\/li>\n\n\n\n<li>Haml\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/li>\n\n\n\n<li>Slim\u3084Pug\u306a\u3069\u3001\u4ed6\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3068\u306e\u6bd4\u8f03<\/li>\n\n\n\n<li>Haml\u30de\u30b9\u30bf\u30fc\u306b\u306a\u308b\u305f\u3081\u306e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"toc\"><br \/>\n<b>Warning<\/b>:  Undefined array key \"is_admin\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>116<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_category_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>121<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>128<\/b><br \/>\n    <div id=\"toc_container\" class=\"sgb-toc--bullets js-smooth-scroll\" data-dialog-title=\"\u76ee\u6b21\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">Haml\u3068\u306f\uff1fRuby\u958b\u767a\u8005\u306e\u305f\u3081\u306e\u6b21\u4e16\u4ee3\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-1\">HTML\u306e\u7169\u308f\u3057\u3055\u304b\u3089\u89e3\u653e\u3055\u308c\u308bHaml\u306e\u9b45\u529b<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-2\">Ruby on Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u304a\u3051\u308bHaml\u306e\u4f4d\u7f6e\u3065\u3051<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-3\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af1\uff1a\u30b3\u30fc\u30c9\u8a18\u8ff0\u91cf\u306e\u5287\u7684\u524a\u6e1b<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-4\">\u30bf\u30b0\u3092\u7701\u7565\u3057\u3066\u30b9\u30c3\u30ad\u30ea\u66f8\u3051\u308bHaml\u306e\u6587\u6cd5<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-5\">\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3088\u308b\u968e\u5c64\u69cb\u9020\u306e\u8868\u73fe\u65b9\u6cd5<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-6\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af2\uff1aRuby\u5f0f\u306e\u76f4\u63a5\u57cb\u3081\u8fbc\u307f\u3067\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u7c21\u5358\u306b<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-7\">Ruby\u5f0f\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d44\u307f\u8fbc\u3080\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-8\">\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u3092\u52b9\u7387\u7684\u306b\u8a18\u8ff0\u3059\u308b\u30c6\u30af\u30cb\u30c3\u30af<\/a>      <\/li>      <li>        <a href=\"#i-9\">Haml\u3068ERB\u306e\u6bd4\u8f03<\/a>      <\/li>      <li>        <a href=\"#i-10\">\u958b\u767a\u52b9\u7387\u5411\u4e0a\u306e\u30dd\u30a4\u30f3\u30c8<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-11\">\u6ce8\u610f\u70b9\u3068\u6700\u9069\u306a\u4f7f\u7528\u65b9\u6cd5<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-12\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af3\uff1a\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u6d3b\u7528\u3067DRY\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-13\">\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f5c\u6210\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-14\">\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u30d1\u30fc\u30b7\u30e3\u30eb\u306e\u52b9\u679c\u7684\u306a\u7d44\u307f\u5408\u308f\u305b<\/a>      <\/li>      <li>        <a href=\"#i-15\">DRY\u539f\u5247\u306b\u57fa\u3065\u3044\u305f\u751f\u7523\u6027\u5411\u4e0a<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-16\">\u6ce8\u610f\u70b9<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-17\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af4\uff1aCSS\u3068JavaScript\u306e\u7d71\u5408\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u3092\u52b9\u7387\u5316<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-18\">Haml\u3067\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u3068\u30af\u30e9\u30b9\u6307\u5b9a\u306e\u7c21\u7565\u5316<\/a>      <\/li>      <li>        <a href=\"#i-19\">JavaScript\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306e\u7c21\u6f54\u306a\u8a18\u8ff0\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-20\">CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068JavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u7d71\u5408<\/a>      <\/li>      <li>        <a href=\"#i-21\">\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306e\u52b9\u7387\u5316<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-22\">\u6ce8\u610f\u70b9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-23\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af5\uff1a\u81ea\u52d5\u6574\u5f62\u6a5f\u80fd\u3067\u30b3\u30fc\u30c9\u306e\u4e00\u8cab\u6027\u3092\u7dad\u6301<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-24\">HamlLint\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u306e\u81ea\u52d5\u30c1\u30a7\u30c3\u30af<\/a>      <\/li>      <li>        <a href=\"#i-30\">CI\u30c4\u30fc\u30eb\u3068\u306e\u9023\u643a\u306b\u3088\u308b\u30b3\u30fc\u30c9\u54c1\u8cea\u306e\u7dad\u6301<\/a>      <\/li>      <li>        <a href=\"#i-33\">\u958b\u767a\u52b9\u7387\u5411\u4e0a\u306e\u30dd\u30a4\u30f3\u30c8<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-34\">\u6ce8\u610f\u70b9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-35\">Haml\u5c0e\u5165\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-36\">\u65e2\u5b58\u306eERB\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u306e\u6bb5\u968e\u7684\u306a\u79fb\u884c\u6226\u7565<\/a>      <\/li>      <li>        <a href=\"#i-41\">\u30c1\u30fc\u30e0\u958b\u767a\u306b\u304a\u3051\u308bHaml\u5c0e\u5165\u6642\u306e\u6ce8\u610f\u70b9<\/a>      <\/li>      <li>        <a href=\"#i-42\">\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74\u3068\u56de\u907f\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-43\">\u9577\u671f\u7684\u306a\u8996\u70b9\u3067\u306eHaml\u5c0e\u5165\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c8<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-44\">\u307e\u3068\u3081<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-45\">Haml\u30de\u30b9\u30bf\u30fc\u3078\u306e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\uff1a\u9ad8\u5ea6\u306a\u6d3b\u7528\u6cd5\u3068\u95a2\u9023\u30c4\u30fc\u30eb<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-46\">Haml\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/a>      <\/li>      <li>        <a href=\"#i-51\">\u9ad8\u5ea6\u306aHaml\u6a5f\u80fd<\/a>      <\/li>      <li>        <a href=\"#i-54\">Slim\u3001Pug\u306a\u3069Haml\u306e\u4ee3\u66ff\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3068\u306e\u6bd4\u8f03<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-57\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306e\u9078\u629e\u57fa\u6e96<\/a>      <\/li>    <\/ul>  <\/li><\/ul>\n      <a href=\"#\" class=\"sgb-toc-button js-toc-button\" rel=\"nofollow\" data-open-dialog=\"true\"><i class=\"fa fa-list\"><\/i><span class=\"sgb-toc-button__text\">\u76ee\u6b21\u3078<\/span><\/a>\n    <\/div><\/div><h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-0\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u3068\u306f\uff1fRuby\u958b\u767a\u8005\u306e\u305f\u3081\u306e\u6b21\u4e16\u4ee3\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e<\/span><\/span><\/h2>\n\n\n\n<p>Ruby\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u3001HTML\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u7169\u308f\u3057\u3055\u3092\u611f\u3058\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f \u30bf\u30b0\u306e\u9589\u3058\u5fd8\u308c\u3084\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u4e71\u308c\u306b\u982d\u3092\u60a9\u307e\u305b\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f \u305d\u3093\u306a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b\u5f37\u529b\u306a\u6b66\u5668\u304c\u300cHaml\u300d\u3067\u3059\u3002<\/p>\n\n\n\n<p>Haml\uff08HTML Abstraction Markup Language\uff09\u306f\u3001HTML\u3092\u3088\u308a\u7c21\u6f54\u306b\u3001\u3088\u308a\u7f8e\u3057\u304f\u8a18\u8ff0\u3059\u308b\u305f\u3081\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3059\u3002<br>Ruby\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001Haml\u306f\u5358\u306a\u308b\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u8a00\u8a9e\u4ee5\u4e0a\u306e\u5b58\u5728\u3067\u3059\u3002<br>\u305d\u308c\u306f\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u52b9\u7387\u3092\u5287\u7684\u306b\u5411\u4e0a\u3055\u305b\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u9ad8\u3044\u30d3\u30e5\u30fc\u3092\u5b9f\u73fe\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u306a\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-1\">HTML\u306e\u7169\u308f\u3057\u3055\u304b\u3089\u89e3\u653e\u3055\u308c\u308bHaml\u306e\u9b45\u529b<\/h3>\n\n\n\n<p>Haml\u306e\u6700\u5927\u306e\u9b45\u529b\u306f\u3001\u305d\u306e\u7c21\u6f54\u3055\u306b\u3042\u308a\u307e\u3059\u3002<br>\u5f93\u6765\u306eHTML\u3068\u6bd4\u8f03\u3057\u3066\u3001Haml\u306f30-50%\u7a0b\u5ea6\u306e\u30b3\u30fc\u30c9\u91cf\u524a\u6e1b\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<br>\u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3001\u5177\u4f53\u4f8b\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-# Haml\u306e\u4f8b\n%section.container\n  %h1.title= page_title\n  %p.content\n    \u3053\u3093\u306b\u3061\u306f\u3001#{current_user.name}\u3055\u3093\uff01\n    = link_to '\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb', user_path(current_user)<\/pre>\n\n\n\n<p>\u540c\u3058\u5185\u5bb9\u3092HTML\u3067\u66f8\u304f\u3068\u3001\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!-- HTML\u306e\u4f8b --&gt;\n&lt;section class=\"container\"&gt;\n  &lt;h1 class=\"title\"&gt;&lt;%= page_title %&gt;&lt;\/h1&gt;\n  &lt;p class=\"content\"&gt;\n    \u3053\u3093\u306b\u3061\u306f\u3001&lt;%= current_user.name %&gt;\u3055\u3093\uff01\n    &lt;%= link_to '\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb', user_path(current_user) %&gt;\n  &lt;\/p&gt;\n&lt;\/section&gt;<\/pre>\n\n\n\n<p>\u4e00\u76ee\u77ad\u7136\u3067\u3059\u306d\u3002<br>Haml\u3067\u306f\u3001\u9589\u3058\u30bf\u30b0\u304c\u4e0d\u8981\u3067\u3001\u30af\u30e9\u30b9\u3084ID\u306e\u6307\u5b9a\u3082\u7c21\u6f54\u3067\u3059\u3002<br>\u3055\u3089\u306b\u3001Ruby\u306e\u30b3\u30fc\u30c9\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u57cb\u3081\u8fbc\u3081\u308b\u305f\u3081\u3001\u52d5\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u751f\u6210\u3082\u5bb9\u6613\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-2\">Ruby on Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u304a\u3051\u308bHaml\u306e\u4f4d\u7f6e\u3065\u3051<\/h3>\n\n\n\n<p>Ruby on Rails 3.1\u4ee5\u964d\u3001Haml\u306f\u6a19\u6e96\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30d3\u30e5\u30fc\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306e1\u3064\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br>\u3064\u307e\u308a\u3001\u7279\u5225\u306a\u8a2d\u5b9a\u306a\u3057\u3067\u7c21\u5358\u306b\u5c0e\u5165\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3068\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">Rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306eHaml\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li><strong>\u30d3\u30e5\u30fc\u306e\u7c21\u6f54\u5316<\/strong>: \u8907\u96d1\u306aHTML\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443\u3092\u6301\u3064\u30d3\u30e5\u30fc\u3092\u3001\u3088\u308a\u8aad\u307f\u3084\u3059\u304f\u7ba1\u7406\u3057\u3084\u3059\u3044\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u6d3b\u7528<\/strong>: Haml\u306f\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08\u30d1\u30fc\u30b7\u30e3\u30eb\uff09\u3068\u306e\u76f8\u6027\u304c\u629c\u7fa4\u3067\u3001DRY\u306a\u958b\u767a\u3092\u4fc3\u9032\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>Asset Pipeline\u3068\u306e\u9023\u643a<\/strong>: Haml\u306fRails\u306eAsset Pipeline\u3068\u5b8c\u74a7\u306b\u7d71\u5408\u3055\u308c\u3066\u304a\u308a\u3001\u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\u3084\u30ad\u30e3\u30c3\u30b7\u30e5\u7ba1\u7406\u304c\u5bb9\u6613\u3067\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<p>Haml\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001Ruby on Rails\u306e\u300c\u8a2d\u5b9a\u3088\u308a\u898f\u7d04\u300d\u306e\u54f2\u5b66\u306b\u3082\u6cbf\u3063\u305f\u958b\u767a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br>\u30b3\u30fc\u30c9\u306e\u4e00\u8cab\u6027\u304c\u9ad8\u307e\u308a\u3001\u30c1\u30fc\u30e0\u958b\u767a\u3067\u306e\u751f\u7523\u6027\u5411\u4e0a\u306b\u3082\u8ca2\u732e\u3059\u308b\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u304b\u3089\u3001Haml\u3092\u4f7f\u3063\u305f\u5177\u4f53\u7684\u306a\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>Ruby\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u3001\u30d3\u30e5\u30fc\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u65b0\u305f\u306a\u5730\u5e73\u7dda\u306b\u8e0f\u307f\u51fa\u3059\u6e96\u5099\u306f\u3067\u304d\u3066\u3044\u307e\u3059\u304b\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-3\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af1\uff1a\u30b3\u30fc\u30c9\u8a18\u8ff0\u91cf\u306e\u5287\u7684\u524a\u6e1b<\/span><\/span><\/h2>\n\n\n\n<p>Haml\u306e\u6700\u5927\u306e\u9b45\u529b\u306e\u4e00\u3064\u306f\u3001\u30b3\u30fc\u30c9\u8a18\u8ff0\u91cf\u3092\u5287\u7684\u306b\u524a\u6e1b\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002<br>\u3053\u306e\u7279\u5fb4\u306f\u3001\u958b\u767a\u52b9\u7387\u306e\u5411\u4e0a\u3060\u3051\u3067\u306a\u304f\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3082\u5927\u5e45\u306b\u6539\u5584\u3057\u307e\u3059\u3002<br>\u3067\u306f\u305d\u306e\u79d8\u5bc6\u306b\u8feb\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-4\">\u30bf\u30b0\u3092\u7701\u7565\u3057\u3066\u30b9\u30c3\u30ad\u30ea\u66f8\u3051\u308bHaml\u306e\u6587\u6cd5<\/h3>\n\n\n\n<p>Haml\u306e\u57fa\u672c\u6587\u6cd5\u306f\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u899a\u3048\u3084\u3059\u3044\u3067\u3059\u3002<br>\u4e3b\u8981\u306a\u30eb\u30fc\u30eb\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#b4e0fa;color:#009EF3\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#009EF3\"><i class=\"far fa-lightbulb\"><\/i><\/span><div class=\"sng-box-msg__title\">Haml\u306e\u4e3b\u8981\u30eb\u30fc\u30eb<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ul class=\"wp-block-list\">\n<li><code>%<\/code> \u3067\u59cb\u307e\u308b\u884c\u306fHTML\u30bf\u30b0\u3092\u8868\u3057\u307e\u3059<\/li>\n\n\n\n<li><code>.<\/code> \u306f\u30af\u30e9\u30b9\u3001<code>#<\/code> \u306fID\u3092\u8868\u3057\u307e\u3059<\/li>\n\n\n\n<li>\u30bf\u30b0\u540d\u3092\u7701\u7565\u3059\u308b\u3068\u3001\u6697\u9ed9\u7684\u306b<code>div<\/code>\u3068\u306a\u308a\u307e\u3059<\/li>\n\n\n\n<li><code>=<\/code> \u3067\u59cb\u307e\u308b\u884c\u306fRuby\u5f0f\u306e\u7d50\u679c\u3092\u51fa\u529b\u3057\u307e\u3059<\/li>\n\n\n\n<li><code>-<\/code> \u3067\u59cb\u307e\u308b\u884c\u306fRuby\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u304c\u3001\u51fa\u529b\u306f\u3057\u307e\u305b\u3093<\/li>\n<\/ul>\n<\/div><\/div><\/div>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30eb\u30fc\u30eb\u3092\u4f7f\u3046\u3068\u3001HTML\u3068\u6bd4\u3079\u3066\u9a5a\u304f\u307b\u3069\u7c21\u6f54\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<br>\u4f7f\u7528\u4f8b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.container\n  %h1 Welcome\n  %p.intro\n    Hello, %span.name User!<\/pre>\n\n\n\n<p>\u3053\u308c\u306f\u4ee5\u4e0b\u306eHTML\u3068\u540c\u7b49\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;div class=\"container\"&gt;\n  &lt;h1&gt;Welcome&lt;\/h1&gt;\n  &lt;p class=\"intro\"&gt;Hello, &lt;span class=\"name\"&gt;User&lt;\/span&gt;!&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n\n\n\n<p>\u898b\u3066\u306e\u901a\u308a\u3001Haml\u3067\u306f\u30bf\u30b0\u306e\u9589\u3058\u304c\u4e0d\u8981\u3067\u3001\u30af\u30e9\u30b9\u3084ID\u306e\u6307\u5b9a\u3082\u6975\u3081\u3066\u7c21\u6f54\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-5\">\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3088\u308b\u968e\u5c64\u69cb\u9020\u306e\u8868\u73fe\u65b9\u6cd5<\/h3>\n\n\n\n<p>Haml\u306e\u3082\u3046\u4e00\u3064\u306e\u7279\u5fb4\u306f\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3088\u308b\u968e\u5c64\u69cb\u9020\u306e\u8868\u73fe\u3067\u3059\u3002<br>\u3053\u308c\u306b\u3088\u308a\u3001HTML\u306e\u5c71\u62ec\u5f27\u306b\u3088\u308b\u5165\u308c\u5b50\u69cb\u9020\u304c\u4e0d\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b50\u8981\u7d20\u306f\u89aa\u8981\u7d20\u3088\u308a1\u6bb5\u968e\u6df1\u304f\u30a4\u30f3\u30c7\u30f3\u30c8\u3057\u307e\u3059<\/li>\n\n\n\n<li>\u540c\u3058\u30ec\u30d9\u30eb\u306e\u8981\u7d20\u306f\u540c\u3058\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3057\u307e\u3059<\/li>\n\n\n\n<li>\u9589\u3058\u30bf\u30b0\u306f\u4e0d\u8981\u3067\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u623b\u308a\u3067\u968e\u5c64\u304c\u9589\u3058\u307e\u3059<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u8907\u96d1\u306a\u69cb\u9020\u3067\u3082\u8996\u899a\u7684\u306b\u5206\u304b\u308a\u3084\u3059\u304f\u3001\u30a8\u30e9\u30fc\u306e\u5c11\u306a\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">%nav\n  %ul\n    %li= link_to 'Home', root_path\n    %li= link_to 'About', about_path\n    %li\n      = link_to 'Products', products_path\n      %ul\n        %li= link_to 'Category A', category_a_path\n        %li= link_to 'Category B', category_b_path<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306a\u8a18\u6cd5\u3068\u30a4\u30f3\u30c7\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u69cb\u9020\u306b\u3088\u308a\u3001Haml\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u958b\u767a\u52b9\u7387\u5411\u4e0a\u3092\u3082\u305f\u3089\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">Haml\u5c0e\u5165\u306b\u3088\u308b\u958b\u767a\u7387\u304c\u5411\u4e0a\u3059\u308b\u3053\u30684\u9078<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li>\u30bf\u30a4\u30d4\u30f3\u30b0\u91cf\u306e\u5927\u5e45\u306a\u6e1b\u5c11<\/li>\n\n\n\n<li>\u9589\u3058\u30bf\u30b0\u306e\u7ba1\u7406\u304c\u4e0d\u8981\u306b\u306a\u308b\u3053\u3068\u306b\u3088\u308b\u30a8\u30e9\u30fc\u306e\u6e1b\u5c11<\/li>\n\n\n\n<li>\u69cb\u9020\u304c\u8996\u899a\u7684\u306b\u5206\u304b\u308a\u3084\u3059\u304f\u306a\u308b\u3053\u3068\u306b\u3088\u308b\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306e\u52b9\u7387\u5316<\/li>\n\n\n\n<li>HTML\u306e\u69cb\u9020\u30a8\u30e9\u30fc\u304c\u8d77\u3053\u308a\u306b\u304f\u304f\u306a\u308b\u3053\u3068\u306b\u3088\u308b\u30c7\u30d0\u30c3\u30b0\u6642\u9593\u306e\u77ed\u7e2e<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<p>Haml\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001Ruby on Rails\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u306f\u3001\u3088\u308a\u5c11\u306a\u3044\u30b3\u30fc\u30c9\u91cf\u3067\u3088\u308a\u591a\u304f\u306e\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Haml\u3068Ruby\u306e\u9023\u643a\u306b\u3088\u308b\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u751f\u6210\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-6\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af2\uff1aRuby\u5f0f\u306e\u76f4\u63a5\u57cb\u3081\u8fbc\u307f\u3067\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u7c21\u5358\u306b<\/span><\/span><\/h2>\n\n\n\n<p>Haml\u306e\u5f37\u529b\u306a\u7279\u5fb4\u306e\u4e00\u3064\u306f\u3001Ruby\u5f0f\u3092\u76f4\u63a5\u304b\u3064\u7c21\u5358\u306b\u57cb\u3081\u8fbc\u3081\u308b\u3053\u3068\u3067\u3059\u3002<br>\u3053\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u751f\u6210\u304c\u975e\u5e38\u306b\u52b9\u7387\u7684\u306b\u306a\u308a\u3001\u958b\u767a\u8005\u306e\u751f\u7523\u6027\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-7\">Ruby\u5f0f\u3092\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d44\u307f\u8fbc\u3080\u65b9\u6cd5<\/h3>\n\n\n\n<p>Haml\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067Ruby\u5f0f\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>=<\/code> \u3067\u59cb\u307e\u308b\u884c\u306fRuby\u5f0f\u306e\u7d50\u679c\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>#{}<\/code> \u3092\u4f7f\u7528\u3057\u3066\u6587\u5b57\u5217\u5185\u306b\u5f0f\u3092\u57cb\u3081\u8fbc\u307f\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>-<\/code> \u3067\u59cb\u307e\u308b\u884c\u306fRuby\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u304c\u3001\u7d50\u679c\u306f\u51fa\u529b\u3057\u307e\u305b\u3093\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u65b9\u6cd5\u3092\u4f7f\u3046\u3068\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u5909\u6570\u306e\u5c55\u958b\u304b\u3089\u8907\u96d1\u306a\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u307e\u3067\u3001\u69d8\u3005\u306aRuby\u5f0f\u3092\u7c21\u5358\u306b\u7d44\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/ \u5909\u6570\u5c55\u958b\n%h1= @user.name\n\n\/ \u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\n= link_to '\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb', user_path(@user)\n\n\/ \u8907\u96d1\u306a\u5f0f\n%p= @items.map(&amp;:name).join(', ')\n\n\/ \u6587\u5b57\u5217\u5185\u3067\u306e\u5f0f\u306e\u4f7f\u7528\n%p Welcome, #{current_user.name}!<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-8\">\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u3092\u52b9\u7387\u7684\u306b\u8a18\u8ff0\u3059\u308b\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n\n\n\n<p>Haml\u3067\u306f\u3001\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u3082\u975e\u5e38\u306b\u7c21\u6f54\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6761\u4ef6\u5206\u5c90\u306e\u4f8b<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">- if @user.admin?\n  %p You have admin privileges.\n- else\n  %p Welcome, regular user!\n\n\/ unless\u306e\u4f7f\u7528\n- unless @users.empty?\n  %ul\n    - @users.each do |user|\n      %li= user.name\n\n\/ \u4e09\u9805\u6f14\u7b97\u5b50\n%p= @user.admin? ? 'Admin User' : 'Regular User'<\/pre>\n\n\n\n<p>\u30eb\u30fc\u30d7\u306e\u4f8b<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/ each\u30eb\u30fc\u30d7\n- @items.each do |item|\n  .item\n    %h3= item.name\n    %p= item.description\n\n\/ times\u30eb\u30fc\u30d7\n- 5.times do |i|\n  %p= \"This is paragraph #{i + 1}\"<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u6280\u8853\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3082\u7c21\u6f54\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-9\">Haml\u3068ERB\u306e\u6bd4\u8f03<\/h3>\n\n\n\n<p>Haml\u3068ERB\u3092\u6bd4\u8f03\u3059\u308b\u3068\u3001Haml\u306e\u5229\u70b9\u304c\u3088\u308a\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div id=\"id-335f8e90-1dcd-447a-982f-30d745616c27\">\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7279\u5fb4<\/th><th>Haml<\/th><th>ERB<\/th><\/tr><\/thead><tbody><tr><td>\u69cb\u6587<\/td><td>\u7c21\u6f54\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u30d9\u30fc\u30b9<\/td><td>HTML\u306b\u8fd1\u3044<\/td><\/tr><tr><td>\u53ef\u8aad\u6027<\/td><td>\u9ad8\u3044\uff08\u7279\u306b\u8907\u96d1\u306a\u69cb\u69cb\u9020\u3067\uff09<\/td><td>\u4e2d\u7a0b\u5ea6<\/td><\/tr><tr><td>\u5b66\u7fd2\u66f2\u7dda<\/td><td>\u3084\u3084\u6025\uff08\u65b0\u3057\u3044\u69cb\u6587\u306e\u7fd2\u5f97\u304c\u5fc5\u8981\uff09<\/td><td>\u7de9\u3084\u304b\uff08HTML\u306b\u4f3c\u3066\u3044\u308b\uff09<\/td><\/tr><tr><td>Ruby\u7d71\u5408<\/td><td>\u30b7\u30fc\u30e0\u30ec\u30b9<\/td><td>\u3084\u3084\u5197\u9577<\/td><\/tr><tr><td>\u30b3\u30fc\u30c9\u91cf<\/td><td>\u5c11\u306a\u3044<\/td><td>\u591a\u3044<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n<p>Haml\u306f\u5b66\u7fd2\u306b\u5c11\u3057\u6642\u9593\u304c\u304b\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4e00\u5ea6\u30de\u30b9\u30bf\u30fc\u3059\u308c\u3070\u3001\u3088\u308a\u7c21\u6f54\u3067\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-10\">\u958b\u767a\u52b9\u7387\u5411\u4e0a\u306e\u30dd\u30a4\u30f3\u30c8<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30d3\u30e5\u30fc\u30ed\u30b8\u30c3\u30af\u306e\u7c21\u6f54\u306a\u8a18\u8ff0<\/strong>: \u8907\u96d1\u306aHTML\u3068Ruby\u306e\u30df\u30c3\u30af\u30b9\u304c\u7c21\u6f54\u306b\u66f8\u3051\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u751f\u6210\u304c\u5bb9\u6613<\/strong>: Ruby\u5f0f\u3092\u76f4\u63a5\u57cb\u3081\u8fbc\u3081\u308b\u305f\u3081\u3001\u52d5\u7684\u306a\u8981\u7d20\u306e\u8ffd\u52a0\u304c\u7c21\u5358\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u5411\u4e0a<\/strong>: \u30a4\u30f3\u30c7\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u69cb\u9020\u3068\u7c21\u6f54\u306a\u8a18\u6cd5\u306b\u3088\u308a\u3001\u30b3\u30fc\u30c9\u306e\u610f\u56f3\u304c\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u5411\u4e0a<\/strong>: \u5c11\u306a\u3044\u30b3\u30fc\u30c9\u91cf\u3067\u540c\u3058\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u308b\u305f\u3081\u3001\u9577\u671f\u7684\u306a\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-11\">\u6ce8\u610f\u70b9\u3068\u6700\u9069\u306a\u4f7f\u7528\u65b9\u6cd5<\/h3>\n\n\n\n<p>Haml\u306e\u5f37\u529b\u306a\u6a5f\u80fd\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u8907\u96d1\u306a\u30ed\u30b8\u30c3\u30af\u306f\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u306b\u62bd\u51fa\u3059\u308b<\/strong>: \u30d3\u30e5\u30fc\u3092\u7c21\u6f54\u306b\u4fdd\u3064\u305f\u3081\u3001\u8907\u96d1\u306a\u51e6\u7406\u306f\u30d8\u30eb\u30d1\u30fc\u306b\u79fb\u52d5\u3055\u305b\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u904e\u5ea6\u306eRuby\u5f0f\u306e\u4f7f\u7528\u306f\u907f\u3051\u308b<\/strong>: \u30d3\u30e5\u30fc\u306e\u5f79\u5272\u3092\u8d85\u3048\u305f\u51e6\u7406\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3084\u30e2\u30c7\u30eb\u3067\u884c\u3046\u3079\u304d\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u9069\u5207\u306a\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u4fdd\u3064<\/strong>: Haml\u306f\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u654f\u611f\u306a\u306e\u3067\u3001\u6b63\u3057\u3044\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/ \u826f\u3044\u4f8b\n= render_user_info(current_user)\n\n\/ \u907f\u3051\u308b\u3079\u304d\u4f8b\n= User.find_by(email: params[:email]).posts.where(published: true).map(&amp;:title).join(', ')<\/pre>\n\n\n\n<p>Haml\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001Ruby on Rails\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u306f\u3001\u3088\u308a\u52b9\u7387\u7684\u306b\u52d5\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u751f\u6210\u3057\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u9ad8\u3044\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Haml\u3092\u4f7f\u3063\u305f\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u6d3b\u7528\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-12\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af3\uff1a\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u6d3b\u7528\u3067DRY\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/span><\/span><\/h2>\n\n\n\n<p>Haml\u306e\u5f37\u529b\u306a\u6a5f\u80fd\u306e\u4e00\u3064\u306b\u3001\u90e8\u5206\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\uff08\u30d1\u30fc\u30b7\u30e3\u30eb\uff09\u306e\u6d3b\u7528\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u52b9\u679c\u7684\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001DRY\uff08Don\u2019t Repeat Yourself\uff09\u306e\u539f\u5247\u306b\u57fa\u3065\u3044\u305f\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u9ad8\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-13\">\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f5c\u6210\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u30d1\u30fc\u30b7\u30e3\u30eb\u306f\u3001\u5171\u901a\u306eUI\u8981\u7d20\u3084\u7e70\u308a\u8fd4\u3057\u4f7f\u7528\u3055\u308c\u308b\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3092\u5225\u30d5\u30a1\u30a4\u30eb\u306b\u5207\u308a\u51fa\u3057\u305f\u3082\u306e\u3067\u3059\u3002<br>Haml\u3067\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u4f5c\u6210\u3059\u308b\u969b\u306e\u57fa\u672c\u30eb\u30fc\u30eb\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#b4e0fa;color:#009EF3\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#009EF3\"><i class=\"far fa-lightbulb\"><\/i><\/span><div class=\"sng-box-msg__title\">Haml\u30d1\u30fc\u30b7\u30e3\u30eb\u306e\u4e3b\u8981\u30eb\u30fc\u30eb<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ol class=\"wp-block-list\">\n<li>\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5148\u982d\u306b\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2(_)\u3092\u3064\u3051\u308b<\/li>\n\n\n\n<li>\u62e1\u5f35\u5b50\u306f <code>.html.haml<\/code> \u3068\u3059\u308b<\/li>\n\n\n\n<li>\u901a\u5e38\u306f <code>app\/views\/shared\/<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3059\u308b<\/li>\n<\/ol>\n<\/div><\/div><\/div>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u306e\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-# app\/views\/shared\/_user_profile.html.haml\n.user-profile\n  %h2= user.name\n  %p= user.email\n  = link_to 'Edit Profile', edit_user_path(user)<\/pre>\n\n\n\n<p>\u3053\u306e\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001<code>render<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-# app\/views\/users\/show.html.haml\n%h1 User Profile\n= render partial: 'shared\/user_profile', locals: { user: @user }<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-14\">\u30ec\u30a4\u30a2\u30a6\u30c8\u3068\u30d1\u30fc\u30b7\u30e3\u30eb\u306e\u52b9\u679c\u7684\u306a\u7d44\u307f\u5408\u308f\u305b<\/h3>\n\n\n\n<p>\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u69cb\u9020\u3092\u6574\u7406\u3057\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30d8\u30c3\u30c0\u30fc\u3001\u30d5\u30c3\u30bf\u30fc\u3001\u30b5\u30a4\u30c9\u30d0\u30fc\u306a\u3069\u306e\u5171\u901a\u8981\u7d20\u3092\u30d1\u30fc\u30b7\u30e3\u30eb\u5316<\/li>\n\n\n\n<li>\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u3067<code>yield<\/code>\u3092\u4f7f\u7528\u3057\u3066\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u57cb\u3081\u8fbc\u3080<\/li>\n\n\n\n<li><code>content_for<\/code>\u3092\u4f7f\u7528\u3057\u3066\u7279\u5b9a\u306e\u9818\u57df\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u633f\u5165<\/li>\n<\/ol>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-# app\/views\/layouts\/application.html.haml\n!!!\n%html\n  %head\n    %title My Awesome App\n    = csrf_meta_tags\n    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'\n    = javascript_pack_tag 'application', 'data-turbolinks-track': 'reload'\n  %body\n    = render 'shared\/header'\n    = yield\n    = render 'shared\/footer'\n    = content_for :scripts<\/pre>\n\n\n\n<p>\u3053\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u5404\u30d3\u30e5\u30fc\u30d5\u30a1\u30a4\u30eb\u306f\u30e1\u30a4\u30f3\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u307f\u306b\u96c6\u4e2d\u3067\u304d\u3001\u30b3\u30fc\u30c9\u306e\u91cd\u8907\u3092\u5927\u5e45\u306b\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-15\">DRY\u539f\u5247\u306b\u57fa\u3065\u3044\u305f\u751f\u7523\u6027\u5411\u4e0a<\/h3>\n\n\n\n<p>\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5229\u70b9\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u30d1\u30fc\u30b7\u30e3\u30eb\u5229\u7528\u306e\u4e3b\u306a\u30e1\u30ea\u30c3\u30c83\u9078<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li><strong>\u30b3\u30fc\u30c9\u306e\u91cd\u8907\u524a\u6e1b<\/strong>: \u5171\u901a\u306e\u30b3\u30fc\u30c9\u3092\u4e00\u7b87\u6240\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u3067\u3001\u91cd\u8907\u3092\u907f\u3051\u3089\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u5411\u4e0a<\/strong>: \u5909\u66f4\u304c\u5fc5\u8981\u306a\u7b87\u6240\u304c\u4e00\u7b87\u6240\u306b\u96c6\u4e2d\u3059\u308b\u305f\u3081\u3001\u4fdd\u5b88\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u518d\u5229\u7528\u6027\u306e\u5411\u4e0a<\/strong>: \u4e00\u5ea6\u4f5c\u6210\u3057\u305f\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u8907\u6570\u306e\u5834\u6240\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u30d5\u30a9\u30fc\u30e0\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u3067\u4e00\u8cab\u3057\u305f\u30a8\u30e9\u30fc\u8868\u793a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-# app\/views\/shared\/_error_messages.html.haml\n- if object.errors.any?\n  .error-messages\n    %h2= \"#{pluralize(object.errors.count, 'error')} prohibited this #{object.class.name.downcase} from being saved:\"\n    %ul\n      - object.errors.full_messages.each do |msg|\n        %li= msg<\/pre>\n\n\n\n<p>\u3053\u306e\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u969b\u306f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">= render 'shared\/error_messages', object: @user<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-16\">\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<p>\u30d1\u30fc\u30b7\u30e3\u30eb\u306e\u4f7f\u7528\u306b\u306f\u591a\u304f\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#ffebeb;color:#f88080\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#f88080\"><i class=\"fas fa-exclamation\"><\/i><\/span><div class=\"sng-box-msg__title\">\u30d1\u30fc\u30b7\u30e3\u30eb\u5229\u7528\u6642\u306e\u6ce8\u610f\u70b9<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ol class=\"wp-block-list\">\n<li><strong>\u904e\u5ea6\u306a\u30d1\u30fc\u30b7\u30e3\u30eb\u5316<\/strong>: \u5c0f\u3055\u3059\u304e\u308b\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u591a\u7528\u3059\u308b\u3068\u3001\u304b\u3048\u3063\u3066\u53ef\u8aad\u6027\u304c\u4e0b\u304c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u5f71\u97ff<\/strong>: \u591a\u6570\u306e\u30d1\u30fc\u30b7\u30e3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u6642\u9593\u304c\u82e5\u5e72\u5897\u52a0\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u9069\u5207\u306a\u7c92\u5ea6<\/strong>: \u30d1\u30fc\u30b7\u30e3\u30eb\u5316\u3059\u308b\u5358\u4f4d\u306f\u3001\u518d\u5229\u7528\u6027\u3068\u53ef\u8aad\u6027\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u8003\u616e\u3057\u3066\u6c7a\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ol>\n<\/div><\/div><\/div>\n\n\n\n<p>Haml\u3067\u306e\u30d1\u30fc\u30b7\u30e3\u30eb\u306e\u6d3b\u7528\u306f\u3001Ruby on Rails\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u306b\u3068\u3063\u3066\u3001\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u3092\u5411\u4e0a\u3055\u305b\u3001\u958b\u767a\u52b9\u7387\u3092\u5927\u5e45\u306b\u6539\u5584\u3059\u308b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002<br>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Haml\u3068CSS\u304a\u3088\u3073JavaScript\u306e\u7d71\u5408\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-17\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af4\uff1aCSS\u3068JavaScript\u306e\u7d71\u5408\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u3092\u52b9\u7387\u5316<\/span><\/span><\/h2>\n\n\n\n<p>Haml\u306f\u3001CSS\u3068JavaScript\u306e\u7d71\u5408\u306b\u304a\u3044\u3066\u3082\u5f37\u529b\u306a\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306e\u52b9\u7387\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u307e\u3059\u3002<br>\u3053\u306e\u7bc0\u3067\u306f\u3001Haml\u3067\u306eCSS\u6307\u5b9a\u306e\u7c21\u7565\u5316\u3068JavaScript\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306e\u8a18\u8ff0\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-18\">Haml\u3067\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u3068\u30af\u30e9\u30b9\u6307\u5b9a\u306e\u7c21\u7565\u5316<\/h3>\n\n\n\n<p>Haml\u3067\u306f\u3001CSS\u30af\u30e9\u30b9\u3084ID\u306e\u6307\u5b9a\u304c\u975e\u5e38\u306b\u7c21\u6f54\u306b\u884c\u3048\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306b\u3001Haml\u3068HTML\u306e\u6bd4\u8f03\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-# Haml\u3067\u306e\u30af\u30e9\u30b9\u3068ID\u6307\u5b9a\n.container#main-content\n  %p.text-primary This is a primary text.<\/pre>\n\n\n\n<p>\u3053\u308c\u306f\u4ee5\u4e0b\u306eHTML\u3068\u540c\u7b49\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;div class=\"container\" id=\"main-content\"&gt;\n  &lt;p class=\"text-primary\"&gt;This is a primary text.&lt;\/p&gt;\n&lt;\/div&gt;<\/pre>\n\n\n\n<p>\u8907\u6570\u306e\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3082\u7c21\u5358\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.btn.btn-primary.large Click me<\/pre>\n\n\n\n<p>\u3053\u308c\u306f\u4ee5\u4e0b\u306eHTML\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;div class=\"btn btn-primary large\"&gt;Click me&lt;\/div&gt;<\/pre>\n\n\n\n<p>\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u3082\u7c21\u6f54\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u304c\u3001\u904e\u5ea6\u306e\u4f7f\u7528\u306f\u907f\u3051\u308b\u3079\u304d\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">%p{style: 'color: red; font-size: 14px;'} Important message<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-19\">JavaScript\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306e\u7c21\u6f54\u306a\u8a18\u8ff0\u65b9\u6cd5<\/h3>\n\n\n\n<p>Haml\u3067\u306f\u3001JavaScript\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3082\u7c21\u5358\u306b\u7d44\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">%button{onclick: 'alert(\"Clicked!\")'} Click me<\/pre>\n\n\n\n<p>\u3053\u308c\u306f\u4ee5\u4e0b\u306eHTML\u3068\u540c\u7b49\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;button onclick=\"alert('Clicked!')\"&gt;Click me&lt;\/button&gt;<\/pre>\n\n\n\n<p>data\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u305fJavaScript\u3068\u306e\u9023\u643a\u3082\u7c21\u5358\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">%div{'data-user-id': user.id} User info<\/pre>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001JavaScript\u304b\u3089\u7c21\u5358\u306bdata\u5c5e\u6027\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">const userId = document.querySelector('[data-user-id]').dataset.userId;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-20\">CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068JavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u7d71\u5408<\/h3>\n\n\n\n<p>Haml\u306fBootstrap\u306a\u3069\u306eCSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306e\u76f8\u6027\u3082\u629c\u7fa4\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.container\n  .row\n    .col-md-6\n      %button.btn.btn-primary Submit<\/pre>\n\n\n\n<p>\u540c\u69d8\u306b\u3001jQuery\u306a\u3069\u306eJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u7c21\u5358\u306b\u7d71\u5408\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">:javascript\n  $(document).ready(function() {\n    $('.btn-primary').on('click', function() {\n      alert('Button clicked!');\n    });\n  });<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-21\">\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306e\u52b9\u7387\u5316<\/h3>\n\n\n\n<p>Haml\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u52b9\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">Haml\u5c0e\u5165\u306b\u3088\u308b\u5168\u4f53\u7684\u306a\u30e1\u30ea\u30c3\u30c84\u9078<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ol class=\"wp-block-list\">\n<li><strong>\u8a18\u8ff0\u91cf\u306e\u524a\u6e1b<\/strong>: \u30af\u30e9\u30b9\u3084\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306e\u6307\u5b9a\u304c\u7c21\u6f54\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u53ef\u8aad\u6027\u306e\u5411\u4e0a<\/strong>: \u30a4\u30f3\u30c7\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u69cb\u9020\u306b\u3088\u308a\u3001HTML\u306e\u69cb\u9020\u304c\u8996\u899a\u7684\u306b\u628a\u63e1\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u6539\u5584<\/strong>: CSS\u30af\u30e9\u30b9\u306e\u5909\u66f4\u3084JavaScript\u30a4\u30d9\u30f3\u30c8\u306e\u8abf\u6574\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u958b\u767a\u30b9\u30d4\u30fc\u30c9\u306e\u5411\u4e0a<\/strong>: \u7c21\u6f54\u306a\u8a18\u6cd5\u306b\u3088\u308a\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306e\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-22\">\u6ce8\u610f\u70b9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30a4\u30f3\u30e9\u30a4\u30f3\u30b9\u30bf\u30a4\u30eb\u306e\u4f7f\u7528\u3092\u6700\u5c0f\u9650\u306b<\/strong>: \u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u306e\u305f\u3081\u3001\u30b9\u30bf\u30a4\u30eb\u306f\u57fa\u672c\u7684\u306b\u5916\u90e8CSS\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u8907\u96d1\u306aJavaScript\u306f\u5206\u96e2<\/strong>: \u5927\u898f\u6a21\u306aJavaScript\u30b3\u30fc\u30c9\u306f\u3001\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u306b\u5206\u96e2\u3057\u3001Asset Pipeline\u3092\u901a\u3057\u3066\u7ba1\u7406\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u9069\u5207\u306a\u30af\u30e9\u30b9\u547d\u540d\u898f\u5247<\/strong>: BEM\u306a\u3069\u306e\u547d\u540d\u898f\u5247\u3092\u63a1\u7528\u3057\u3001\u4e00\u8cab\u6027\u306e\u3042\u308b\u30af\u30e9\u30b9\u540d\u3092\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u306e\u8003\u616e<\/strong>: Bootstrap\u306e\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u3092\u6d3b\u7528\u3057\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Haml\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001Ruby on Rails\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u306f\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3060\u3051\u3067\u306a\u304f\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306b\u304a\u3044\u3066\u3082\u751f\u7523\u6027\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Haml\u306e\u81ea\u52d5\u6574\u5f62\u6a5f\u80fd\u3092\u6d3b\u7528\u3057\u305f\u30b3\u30fc\u30c9\u306e\u4e00\u8cab\u6027\u7dad\u6301\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-23\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u3092\u4f7f\u3063\u305f\u751f\u7523\u6027\u5411\u4e0a\u30c6\u30af\u30cb\u30c3\u30af5\uff1a\u81ea\u52d5\u6574\u5f62\u6a5f\u80fd\u3067\u30b3\u30fc\u30c9\u306e\u4e00\u8cab\u6027\u3092\u7dad\u6301<\/span><\/span><\/h2>\n\n\n\n<p>Haml\u306e\u5f37\u529b\u306a\u6a5f\u80fd\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3059\u308b\u306b\u306f\u3001\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u3068\u4e00\u8cab\u6027\u3092\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<br>\u305d\u3053\u3067\u5f79\u7acb\u3064\u306e\u304c\u3001HamlLint\u3068\u3044\u3046\u9759\u7684\u30b3\u30fc\u30c9\u89e3\u6790\u30c4\u30fc\u30eb\u3067\u3059\u3002<br>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001HamlLint\u306e\u6d3b\u7528\u65b9\u6cd5\u3068CI\u30c4\u30fc\u30eb\u3068\u306e\u9023\u643a\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-24\">HamlLint\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u306e\u81ea\u52d5\u30c1\u30a7\u30c3\u30af<\/h3>\n\n\n\n<p>HamlLint\u306f\u3001Haml\u30d5\u30a1\u30a4\u30eb\u306e\u9759\u7684\u30b3\u30fc\u30c9\u89e3\u6790\u3092\u884c\u3044\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u306e\u4e00\u8cab\u6027\u3092\u4fdd\u3061\u3001\u6f5c\u5728\u7684\u306a\u554f\u984c\u3084\u30d0\u30b0\u3092\u65e9\u671f\u306b\u767a\u898b\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-25\">HamlLint\u306e\u5c0e\u5165\u65b9\u6cd5<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-26\">1. Gemfile\u306b\u4ee5\u4e0b\u306e\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   gem 'haml_lint', require: false<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-27\">2. \u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   bundle install<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-28\">3. HamlLint\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   bundle exec haml-lint --generate-config<\/pre>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<code>.haml-lint.yml<\/code>\u3068\u3044\u3046\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-29\">\u4e3b\u8981\u306aHamlLint\u30eb\u30fc\u30eb<\/h4>\n\n\n\n<p>HamlLint\u306b\u306f\u591a\u304f\u306e\u6709\u7528\u306a\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>LineLength<\/code>: 1\u884c\u306e\u9577\u3055\u3092\u5236\u9650\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>RuboCop<\/code>: \u57cb\u3081\u8fbc\u307e\u308c\u305fRuby\u30b3\u30fc\u30c9\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>ClassesBeforeIds<\/code>: \u30af\u30e9\u30b9\u3092ID\u306e\u524d\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3092\u5f37\u5236\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>EmptyScript<\/code>: \u7a7a\u306eRuby\u30b9\u30af\u30ea\u30d7\u30c8\u30bf\u30b0\u3092\u691c\u51fa\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30eb\u30fc\u30eb\u306f<code>.haml-lint.yml<\/code>\u3067\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">linters:\n  LineLength:\n    max: 100\n  RuboCop:\n    enabled: true\n    config_file: .rubocop.yml<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-30\">CI\u30c4\u30fc\u30eb\u3068\u306e\u9023\u643a\u306b\u3088\u308b\u30b3\u30fc\u30c9\u54c1\u8cea\u306e\u7dad\u6301<\/h3>\n\n\n\n<p>HamlLint\u3092CI\u30c4\u30fc\u30eb\u3068\u9023\u643a\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u54c1\u8cea\u3092\u7d99\u7d9a\u7684\u306b\u76e3\u8996\u3057\u3001\u7dad\u6301\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-31\">GitLab CI\u3067\u306e\u8a2d\u5b9a\u4f8b<\/h4>\n\n\n\n<p><code>.gitlab-ci.yml<\/code>\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">haml_lint:\n  stage: test\n  script:\n    - bundle exec haml-lint app\/views<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-32\">GitHub Actions\u3067\u306e\u8a2d\u5b9a\u4f8b<\/h4>\n\n\n\n<p><code>.github\/workflows\/haml-lint.yml<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">name: HAML Lint\n\non: [push, pull_request]\n\njobs:\n  haml-lint:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions\/checkout@v2\n    - name: Set up Ruby\n      uses: ruby\/setup-ruby@v1\n      with:\n        ruby-version: 3.0.0\n    - name: Install dependencies\n      run: bundle install\n    - name: Run HamlLint\n      run: bundle exec haml-lint app\/views<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-33\">\u958b\u767a\u52b9\u7387\u5411\u4e0a\u306e\u30dd\u30a4\u30f3\u30c8<\/h3>\n\n\n\n<p>HamlLint\u3068CI\u30c4\u30fc\u30eb\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u52b9\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30b3\u30fc\u30c9\u30b9\u30bf\u30a4\u30eb\u306e\u81ea\u52d5\u30c1\u30a7\u30c3\u30af<\/strong>: \u624b\u52d5\u3067\u306e\u30c1\u30a7\u30c3\u30af\u304c\u4e0d\u8981\u306b\u306a\u308a\u3001\u6642\u9593\u3092\u7bc0\u7d04\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30c1\u30fc\u30e0\u5168\u4f53\u3067\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u306e\u7d71\u4e00<\/strong>: \u4e00\u8cab\u3057\u305f\u30b3\u30fc\u30c9\u30b9\u30bf\u30a4\u30eb\u3092\u7dad\u6301\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u6f5c\u5728\u7684\u306a\u30d0\u30b0\u306e\u65e9\u671f\u767a\u898b<\/strong>: \u554f\u984c\u306e\u3042\u308b\u30b3\u30fc\u30c9\u3092\u65e9\u671f\u306b\u691c\u51fa\u3057\u3001\u4fee\u6b63\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306e\u52b9\u7387\u5316<\/strong>: \u30b9\u30bf\u30a4\u30eb\u306e\u554f\u984c\u3092\u81ea\u52d5\u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u3001\u30ec\u30d3\u30e5\u30a2\u30fc\u306f\u6a5f\u80fd\u9762\u306b\u96c6\u4e2d\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-34\">\u6ce8\u610f\u70b9\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u9069\u3057\u305f\u30eb\u30fc\u30eb\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/strong>: \u3059\u3079\u3066\u306e\u30eb\u30fc\u30eb\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>false\u30dd\u30b8\u30c6\u30a3\u30d6\u306b\u6ce8\u610f<\/strong>: \u3068\u304d\u306b\u30eb\u30fc\u30eb\u304c\u904e\u5270\u306b\u53b3\u3057\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br>\u9069\u5b9c\u8abf\u6574\u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u5b9a\u671f\u7684\u306a\u30eb\u30fc\u30eb\u306e\u898b\u76f4\u3057\u3068\u66f4\u65b0<\/strong>: \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u9032\u884c\u306b\u5408\u308f\u305b\u3066\u3001\u30eb\u30fc\u30eb\u3092\u898b\u76f4\u3057\u3001\u66f4\u65b0\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u30c1\u30fc\u30e0\u5168\u4f53\u3067\u306e\u5408\u610f\u5f62\u6210<\/strong>: \u30eb\u30fc\u30eb\u306e\u8a2d\u5b9a\u306f\u30c1\u30fc\u30e0\u5168\u4f53\u3067\u8b70\u8ad6\u3057\u3001\u5408\u610f\u3092\u5f97\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ol>\n\n\n\n<p>HamlLint\u3068CI\u30c4\u30fc\u30eb\u306e\u9023\u643a\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001Ruby on Rails\u958b\u767a\u8005\u306e\u7686\u3055\u3093\u306f\u3001\u9ad8\u54c1\u8cea\u3067\u4e00\u8cab\u6027\u306e\u3042\u308bHaml\u30b3\u30fc\u30c9\u3092\u7dad\u6301\u3057\u3064\u3064\u3001\u958b\u767a\u52b9\u7387\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Haml\u5c0e\u5165\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-35\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u5c0e\u5165\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74<\/span><\/span><\/h2>\n\n\n\n<p>Haml\u306e\u5c0e\u5165\u306f\u3001Ruby on Rails\u958b\u767a\u306e\u52b9\u7387\u3092\u5927\u304d\u304f\u5411\u4e0a\u3055\u305b\u308b\u53ef\u80fd\u6027\u3092\u79d8\u3081\u3066\u3044\u307e\u3059\u3002<br>\u3057\u304b\u3057\u3001\u305d\u306e\u904e\u7a0b\u306b\u306f\u614e\u91cd\u306a\u8a08\u753b\u3068\u5b9f\u884c\u304c\u5fc5\u8981\u3067\u3059\u3002<br>\u3053\u3053\u3067\u306f\u3001Haml\u5c0e\u5165\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3001\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-36\">\u65e2\u5b58\u306eERB\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u306e\u6bb5\u968e\u7684\u306a\u79fb\u884c\u6226\u7565<\/h3>\n\n\n\n<p>ERB\u304b\u3089Haml\u3078\u306e\u79fb\u884c\u306f\u3001\u4ee5\u4e0b\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u6bb5\u968e\u7684\u306b\u884c\u3046\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-37\">1. <strong>Haml\u306e\u5c0e\u5165<\/strong><\/h4>\n\n\n\n<p>\u307e\u305a\u3001Gemfile\u306b<code>gem 'haml-rails'<\/code>\u3092\u8ffd\u52a0\u3057\u3001<code>bundle install<\/code>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-38\">2. <strong>\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u306eHaml\u5316<\/strong><\/h4>\n\n\n\n<p>\u65b0\u3057\u304f\u4f5c\u6210\u3059\u308b\u30d3\u30e5\u30fc\u30d5\u30a1\u30a4\u30eb\u306fHaml\u3067\u66f8\u304d\u59cb\u3081\u307e\u3059\u3002<br>\u3053\u308c\u306b\u3088\u308a\u3001\u30c1\u30fc\u30e0\u304cHaml\u306b\u6163\u308c\u308b\u6642\u9593\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-39\">3. <strong>\u65e2\u5b58\u30d5\u30a1\u30a4\u30eb\u306e\u6bb5\u968e\u7684\u5909\u63db<\/strong><\/h4>\n\n\n\n<p>\u512a\u5148\u5ea6\u306e\u4f4e\u3044\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u9806\u306b\u3001ERB\u304b\u3089Haml\u3078\u306e\u5909\u63db\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u81ea\u52d5\u5909\u63db\u30c4\u30fc\u30eb<code>html2haml<\/code>\u3092\u6d3b\u7528\u3057\u3064\u3064\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#ffebeb;color:#f88080\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#f88080\"><i class=\"fas fa-exclamation\"><\/i><\/span><div class=\"sng-box-msg__title\">ERB\u304b\u3089Haml\u3078\u79fb\u884c\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ul class=\"wp-block-list\">\n<li>\u8907\u96d1\u306aERB\u30d5\u30a1\u30a4\u30eb\u306f\u624b\u52d5\u3067\u5909\u63db\u3057\u3001\u6700\u9069\u5316\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30d1\u30fc\u30b7\u30e3\u30eb\u306e\u62e1\u5f35\u5b50\u3092<code>.erb<\/code>\u304b\u3089<code>.haml<\/code>\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u305a\u306b\u3002<\/li>\n\n\n\n<li>\u30ec\u30a4\u30a2\u30a6\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u63db\u306f\u6700\u5f8c\u306b\u884c\u3044\u3001\u5341\u5206\u306a\u30c6\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/div><\/div><\/div>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-40\">4. <strong>\u5909\u63db\u5f8c\u306e\u30c6\u30b9\u30c8\u3068\u78ba\u8a8d<\/strong><\/h4>\n\n\n\n<p>\u5404\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u63db\u5f8c\u306f\u3001\u5fc5\u305a\u52d5\u4f5c\u78ba\u8a8d\u3068\u30c6\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-41\">\u30c1\u30fc\u30e0\u958b\u767a\u306b\u304a\u3051\u308bHaml\u5c0e\u5165\u6642\u306e\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30c1\u30fc\u30e0\u5168\u4f53\u3067\u306e\u5b66\u7fd2<\/strong>: Haml\u5c0e\u5165\u524d\u306b\u3001\u30c1\u30fc\u30e0\u5168\u4f53\u3067\u306eHaml\u5b66\u7fd2\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u5b9f\u65bd\u3057\u307e\u3057\u3087\u3046\u3002<br>\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30aa\u30f3\u30e9\u30a4\u30f3\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u6d3b\u7528\u3057\u3001\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u304b\u3089\u9ad8\u5ea6\u306a\u30c6\u30af\u30cb\u30c3\u30af\u307e\u3067\u3092\u30ab\u30d0\u30fc\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u306e\u66f4\u65b0<\/strong>: Haml\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u30c1\u30fc\u30e0\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u306b\u53cd\u6620\u3057\u3001\u5168\u54e1\u3067\u5171\u6709\u3057\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u30b9\u30da\u30fc\u30b9\u6570\u3084\u30af\u30e9\u30b9\/ID\u6307\u5b9a\u306e\u9806\u5e8f\u306a\u3069\u3092\u7d71\u4e00\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u6bb5\u968e\u7684\u306a\u5c0e\u5165<\/strong>: \u65b0\u898f\u6a5f\u80fd\u306e\u958b\u767a\u304b\u3089Haml\u3092\u4f7f\u7528\u3057\u59cb\u3081\u3001\u5f90\u3005\u306b\u65e2\u5b58\u90e8\u5206\u306b\u3082\u9069\u7528\u3057\u3066\u3044\u304f\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u52b9\u679c\u7684\u3067\u3059\u3002<\/li>\n\n\n\n<li><strong>\u5b9a\u671f\u7684\u306a\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc<\/strong>: Haml\u5c0e\u5165\u521d\u671f\u306f\u7279\u306b\u3001\u983b\u7e41\u306b\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u3092\u884c\u3044\u3001\u30c1\u30fc\u30e0\u5185\u3067\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u5171\u6709\u3057\u307e\u3059\u3002<br>\u3053\u308c\u306b\u3088\u308a\u3001\u5171\u901a\u306e\u554f\u984c\u70b9\u3084\u6539\u5584\u70b9\u3092\u65e9\u671f\u306b\u767a\u898b\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-42\">\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74\u3068\u56de\u907f\u65b9\u6cd5<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30a4\u30f3\u30c7\u30f3\u30c8\u30df\u30b9<\/strong>: Haml\u306f\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u654f\u611f\u3067\u3059\u3002<br>\u9069\u5207\u306a\u30a8\u30c7\u30a3\u30bf\u8a2d\u5b9a\u3068\u6ce8\u610f\u6df1\u3044\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u9632\u304e\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>\u8907\u96d1\u3059\u304e\u308bHaml\u30b3\u30fc\u30c9<\/strong>: \u30d3\u30e5\u30fc\u306b\u30ed\u30b8\u30c3\u30af\u3092\u904e\u5270\u306b\u57cb\u3081\u8fbc\u307e\u306a\u3044\u3088\u3046\u6ce8\u610f\u3057\u307e\u3059\u3002<br>\u8907\u96d1\u306a\u51e6\u7406\u306f\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u306b\u5207\u308a\u51fa\u3059\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u904e\u5ea6\u306e\u61f8\u5ff5<\/strong>: Haml\u306e\u51e6\u7406\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306f\u901a\u5e38\u554f\u984c\u306b\u306a\u3089\u306a\u3044\u30ec\u30d9\u30eb\u3067\u3059\u304c\u3001\u5927\u898f\u6a21\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u9069\u5207\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u6226\u7565\u3092\u691c\u8a0e\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n\n\n\n<li><strong>ERB\u3068Haml\u306e\u6df7\u5728<\/strong>: \u79fb\u884c\u671f\u9593\u4e2d\u306fERB\u3068Haml\u304c\u6df7\u5728\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br>\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u7d71\u4e00\uff08\u4f8b\uff1a\u3059\u3079\u3066.html.haml\u306b\u7d71\u4e00\uff09\u3068\u3001\u660e\u78ba\u306a\u79fb\u884c\u8a08\u753b\u3067\u6df7\u4e71\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u307e\u3057\u3087\u3046\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-43\">\u9577\u671f\u7684\u306a\u8996\u70b9\u3067\u306eHaml\u5c0e\u5165\u306e\u30e1\u30ea\u30c3\u30c8\u3068\u30c7\u30e1\u30ea\u30c8<\/h3>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#b4e0fa;color:#009EF3\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#009EF3\"><i class=\"far fa-thumbs-up\"><\/i><\/span><div class=\"sng-box-msg__title\">\u30e1\u30ea\u30c3\u30c8<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ol class=\"wp-block-list\">\n<li><strong>\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u306e\u4e00\u8cab\u6027<\/strong>: Haml\u306e\u63a1\u7528\u306b\u3088\u308a\u3001\u30d3\u30e5\u30fc\u30b3\u30fc\u30c9\u306e\u4e00\u8cab\u6027\u304c\u5411\u4e0a\u3057\u3001\u53ef\u8aad\u6027\u304c\u9ad8\u307e\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u4fdd\u5b88\u6027\u306e\u5411\u4e0a<\/strong>: \u7c21\u6f54\u3067\u69cb\u9020\u5316\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306b\u3088\u308a\u3001\u9577\u671f\u7684\u306a\u4fdd\u5b88\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u65b0\u30e1\u30f3\u30d0\u30fc\u306e\u53c2\u5165\u969c\u58c1\u4f4e\u4e0b<\/strong>: \u4e00\u5ea6Haml\u3092\u5b66\u7fd2\u3059\u308c\u3070\u3001\u30b3\u30fc\u30c9\u306e\u7406\u89e3\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u65b0\u30e1\u30f3\u30d0\u30fc\u306e\u53c2\u5165\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div><\/div>\n\n\n\n<div class=\"wp-block-sgb-message\"><div class=\"memo sng-shadow-0\" style=\"border-radius:0px;background-color:#ffebeb;color:#f88080\"><div class=\"memo_ttl dfont\"><span class=\"sng-box-msg__icon\" style=\"background:#f88080\"><i class=\"fas fa-thumbs-down\"><\/i><\/span><div class=\"sng-box-msg__title\">\u30c7\u30e1\u30ea\u30c3\u30c8<\/div><\/div><div class=\"sng-box-msg__contents\">\n<ol class=\"wp-block-list\">\n<li><strong>\u5b66\u7fd2\u30b3\u30b9\u30c8<\/strong>: \u521d\u671f\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u7279\u306b\u3001HTML\u3084ERB\u306b\u6163\u308c\u305f\u958b\u767a\u8005\u306b\u306f\u7fd2\u719f\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u4ed6\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u306e\u5dee\u7570<\/strong>: Ruby\/Rails\u4ee5\u5916\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u306f\u6280\u8853\u30b9\u30bf\u30c3\u30af\u304c\u7570\u306a\u308b\u305f\u3081\u3001\u77e5\u8b58\u306e\u8ee2\u7528\u304c\u96e3\u3057\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u5c06\u6765\u7684\u306a\u5909\u66f4\u30b3\u30b9\u30c8<\/strong>: \u5c06\u6765\u7684\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3092\u5909\u66f4\u3059\u308b\u5834\u5408\u3001\u591a\u5927\u306a\u52b4\u529b\u304c\u5fc5\u8981\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/div><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-44\">\u307e\u3068\u3081<\/h3>\n\n\n\n<p>Haml\u306e\u5c0e\u5165\u306f\u3001\u614e\u91cd\u306b\u8a08\u753b\u3057\u3001\u6bb5\u968e\u7684\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u5927\u304d\u306a\u5229\u76ca\u3092\u3082\u305f\u3089\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30c1\u30fc\u30e0\u5168\u4f53\u3067\u306e\u5408\u610f\u5f62\u6210\u3001\u5341\u5206\u306a\u5b66\u7fd2\u6642\u9593\u306e\u78ba\u4fdd\u3001\u305d\u3057\u3066\u6bb5\u968e\u7684\u306a\u79fb\u884c\u304c\u6210\u529f\u306e\u9375\u3068\u306a\u308a\u307e\u3059\u3002<br>\u843d\u3068\u3057\u7a74\u3092\u8a8d\u8b58\u3057\u3001\u9069\u5207\u306b\u5bfe\u51e6\u3059\u308b\u3053\u3068\u3067\u3001Haml\u306e\u5229\u70b9\u3092\u6700\u5927\u9650\u306b\u6d3b\u304b\u3057\u3001\u751f\u7523\u6027\u306e\u9ad8\u3044\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Haml\u30de\u30b9\u30bf\u30fc\u3078\u306e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001\u9ad8\u5ea6\u306a\u6d3b\u7528\u6cd5\u3068\u95a2\u9023\u30c4\u30fc\u30eb\u306b\u3064\u3044\u3066\u63a2\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\" id=\"i-45\"><span class=\"sgb-heading__inner sgb-heading--type1 with-icon\" style=\"background-color:transparent;border-color:transparent;font-size:1.2em\"><i class=\"fa fa-check\" style=\"color:var(--wp--preset--color--sango-main)\"><\/i><span class=\"sgb-heading__text\" style=\"color:#333\">Haml\u30de\u30b9\u30bf\u30fc\u3078\u306e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\uff1a\u9ad8\u5ea6\u306a\u6d3b\u7528\u6cd5\u3068\u95a2\u9023\u30c4\u30fc\u30eb<\/span><\/span><\/h2>\n\n\n\n<p>Haml\u306e\u57fa\u672c\u3092\u7fd2\u5f97\u3057\u305f\u3089\u3001\u6b21\u306f\u3088\u308a\u9ad8\u5ea6\u306a\u6d3b\u7528\u6cd5\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306b\u76ee\u3092\u5411\u3051\u307e\u3057\u3087\u3046\u3002<br>\u307e\u305f\u3001Haml\u306e\u4ee3\u66ff\u3068\u306a\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306b\u3064\u3044\u3066\u3082\u7406\u89e3\u3092\u6df1\u3081\u308b\u3053\u3068\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u6700\u9069\u306a\u9078\u629e\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-46\">Haml\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-47\">1. <strong>\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6d3b\u7528<\/strong><\/h4>\n\n\n\n<p>Rails\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u6a5f\u80fd\u3068Haml\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u6642\u9593\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   - cache [\"v1\", @user] do\n     .user-info\n       %h2= @user.name\n       %p= @user.bio<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-48\">2. <strong>\u30ed\u30b8\u30c3\u30af\u306e\u6700\u5c0f\u5316\u3068\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u7528<\/strong><\/h4>\n\n\n\n<p>\u8907\u96d1\u306a\u30ed\u30b8\u30c3\u30af\u306f\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u306b\u79fb\u52d5\u3055\u305b\u3001\u30d3\u30e5\u30fc\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u4fdd\u3061\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   = render_user_status(@user)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-49\">3. <strong>\u4e0d\u8981\u306a\u30db\u30ef\u30a4\u30c8\u30b9\u30da\u30fc\u30b9\u306e\u524a\u9664<\/strong><\/h4>\n\n\n\n<p><code>&gt;<\/code> \u3092\u4f7f\u7528\u3057\u3066\u4e0d\u8981\u306a\u6539\u884c\u3092\u524a\u9664\u3057\u3001HTML\u306e\u51fa\u529b\u30b5\u30a4\u30ba\u3092\u6e1b\u3089\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   %p&gt;\n     This is a single line in the output,\n     even though it's written on multiple lines in the Haml.<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-50\">4. <strong>\u5927\u304d\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5206\u5272<\/strong><\/h4>\n\n\n\n<p>\u5927\u304d\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u5c0f\u3055\u306a\u30d1\u30fc\u30b7\u30e3\u30eb\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u3067\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u52b9\u7387\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-51\">\u9ad8\u5ea6\u306aHaml\u6a5f\u80fd<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-52\">1. <strong>\u30ab\u30b9\u30bf\u30e0\u30d5\u30a3\u30eb\u30bf\u306e\u4f5c\u6210<\/strong><\/h4>\n\n\n\n<p>\u7279\u5b9a\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7\u306b\u5bfe\u3057\u3066\u72ec\u81ea\u306e\u51e6\u7406\u3092\u884c\u3046\u30d5\u30a3\u30eb\u30bf\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-53\">2. <strong>\u8907\u96d1\u306a\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u306e\u52b9\u7387\u7684\u306a\u8a18\u8ff0<\/strong><\/h4>\n\n\n\n<p>Ruby \u306e\u6761\u4ef6\u6f14\u7b97\u5b50\u3084 <code>tap<\/code> \u30e1\u30bd\u30c3\u30c9\u3092\u6d3b\u7528\u3057\u3066\u3001\u8907\u96d1\u306a\u6761\u4ef6\u5206\u5c90\u3092\u7c21\u6f54\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   = @user.admin? ? \"Admin\" : \"User\"\n   - @items.tap do |items|\n     - if items.any?\n       %ul\n         - items.each do |item|\n           %li= item.name\n     - else\n       %p No items found.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-54\">Slim\u3001Pug\u306a\u3069Haml\u306e\u4ee3\u66ff\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3068\u306e\u6bd4\u8f03<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-55\">1. <strong>Slim<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7279\u5fb4\uff1aHaml\u3088\u308a\u3055\u3089\u306b\u7c21\u6f54\u306a\u69cb\u6587\u3001\u9ad8\u901f\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/li>\n\n\n\n<li>\u9577\u6240\uff1a\u30b3\u30fc\u30c9\u306e\u8a18\u8ff0\u91cf\u304c\u5c11\u306a\u3044\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u901f\u5ea6\u304c\u901f\u3044<\/li>\n\n\n\n<li>\u77ed\u6240\uff1a\u5b66\u7fd2\u66f2\u7dda\u304c\u6025\u3001\u53ef\u8aad\u6027\u304c\u3084\u3084\u4f4e\u4e0b\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   doctype html\n   html\n     head\n       title Slim Example\n     body\n       h1 Welcome to Slim\n       p This is a sample Slim template.<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"i-56\">2. <strong>Pug\uff08\u65e7Jade\uff09<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7279\u5fb4\uff1aNode.js\u74b0\u5883\u3067\u4eba\u6c17\u3001JavaScript\u30d9\u30fc\u30b9<\/li>\n\n\n\n<li>\u9577\u6240\uff1a\u8c4a\u5bcc\u306a\u6a5f\u80fd\u3001\u67d4\u8edf\u306a\u69cb\u6587<\/li>\n\n\n\n<li>\u77ed\u6240\uff1aRuby\/Rails\u74b0\u5883\u3068\u306e\u76f8\u6027\u304c\u3042\u307e\u308a\u826f\u304f\u306a\u3044\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u9ad8\u3044<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   doctype html\n   html\n     head\n       title Pug Example\n     body\n       h1 Welcome to Pug\n       p This is a sample Pug template.<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-57\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u306e\u9078\u629e\u57fa\u6e96<\/h3>\n\n\n\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u6700\u9069\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3092\u9078\u3076\u969b\u306f\u3001\u4ee5\u4e0b\u306e\u70b9\u3092\u8003\u616e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u6a21\u3068\u8907\u96d1\u3055<\/li>\n\n\n\n<li>\u30c1\u30fc\u30e0\u306e\u7d4c\u9a13\u3068\u597d\u307f<\/li>\n\n\n\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6<\/li>\n\n\n\n<li>\u4fdd\u5b88\u6027\u3068\u53ef\u8aad\u6027\u306e\u30d0\u30e9\u30f3\u30b9<\/li>\n<\/ol>\n\n\n\n<p>Haml\u306f\u5b66\u7fd2\u66f2\u7dda\u304c\u7de9\u3084\u304b\u3067\u3001Ruby\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u76f4\u611f\u7684\u3067\u3042\u308b\u4e00\u65b9\u3001Slim\u306f\u3088\u308a\u7c21\u6f54\u3067\u9ad8\u901f\u3067\u3059\u3002<br>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u9069\u5207\u306b\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>Haml\u30de\u30b9\u30bf\u30fc\u3092\u76ee\u6307\u3059\u904e\u7a0b\u3067\u3001\u3053\u308c\u3089\u306e\u9ad8\u5ea6\u306a\u30c6\u30af\u30cb\u30c3\u30af\u3084\u4ee3\u66ff\u8a00\u8a9e\u306b\u3064\u3044\u3066\u5b66\u3076\u3053\u3068\u3067\u3001\u3088\u308a\u67d4\u8edf\u3067\u52b9\u7387\u7684\u306a\u30d3\u30e5\u30fc\u958b\u767a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<br>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u306b\u3082\u7a4d\u6975\u7684\u306b\u53d6\u308a\u7d44\u307f\u3001\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u3067\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Haml\u306f\u3001Ruby on Rails\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u5f37\u529b\u306a\u30d3\u30e5\u30fc\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a00\u8a9e\u3067\u3059\u3002HTML\u306e\u7169\u308f\u3057\u3055\u304b\u3089\u89e3\u653e\u3055\u308c\u3001\u3088\u308a\u7c21\u6f54\u3067\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Haml\u306e\u57fa\u672c\u304b\u3089\u9ad8\u5ea6\u306a\u4f7f\u3044\u65b9\u307e\u3067\u3001\u5b9f\u8df5 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3088,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,65],"tags":[],"class_list":{"0":"post-142","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ruby","8":"category-ruby-syntax"},"_links":{"self":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=142"}],"version-history":[{"count":2,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":3120,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions\/3120"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/media\/3088"}],"wp:attachment":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}