{"id":4602,"date":"2018-06-20T12:21:49","date_gmt":"2018-06-20T03:21:49","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=4602"},"modified":"2023-05-27T23:01:51","modified_gmt":"2023-05-27T14:01:51","slug":"%e3%80%90ruby-on-rails%e3%80%91%e3%82%a2%e3%82%bb%e3%83%83%e3%83%88%e3%83%95%e3%82%a1%e3%82%a4%e3%83%abcssjavascript%e3%81%ae%e4%bb%95%e7%b5%84%e3%81%bf","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=4602","title":{"rendered":"\u3010Ruby on Rails\u3011\u30a2\u30bb\u30c3\u30c8(CSS,JavaScript)\u3084\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4ed5\u7d44\u307f(Sprockets\u3001Webpacker\uff09"},"content":{"rendered":"<h2>\u30a2\u30bb\u30c3\u30c8\u3068\u306f\uff1f<\/h2>\n<p>\u30a2\u30d7\u30ea\u3092\u69cb\u6210\u3059\u308b3\u70b9\u30bb\u30c3\u30c8(\u753b\u50cf\u3001CSS\u3001JavaScript)\u306e\u7dcf\u79f0\u3067\u3059\u3002<\/p>\n<h2>Sprockets<\/h2>\n<p>Rails\u3067\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3068JavaScript\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u51fa\u529b\u3059\u308bHTML\u3078\u81ea\u52d5\u3067\u300c\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u300d\u306b\u5b9a\u7fa9\u3057\u305f\u5171\u901a\u306eCSS\u3001JavaScript\u3092\u57cb\u3081\u8fbc\u3093\u3067\u304f\u308c\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>CSS\u306e\u62e1\u5f35\u4ed5\u69d8\u3067\u3042\u308b\u300cSCSS\u300d\u3084\u3001JavaScript\u3092Ruby\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3067\u304d\u308b\u300cCoffeeScript\u300d<\/strong><\/span>\u3078\u5909\u63db\u3059\u308b\u4ed5\u7d44\u307f\u3092\u3068\u308a\u307e\u3068\u3081\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<h3>Rails6\u304b\u3089\u306fwebpack\u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u3002<\/h3>\n<p>\u306a\u304a\u3001Sprockets\u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u306e\u306fRails5\u307e\u3067\u30672019\u5e7411\u6708\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fRails6\u304b\u3089\u306fSprockets\u3067\u306f\u306a\u304f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067<span style=\"color: #ff0000;\"><strong>webpack<\/strong><\/span>\u306b\u3088\u308b\u30d3\u30eb\u30c9\u3092\u3059\u308b\u65b9\u5f0f\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb<\/h2>\n<p class=\"p1\"><span style=\"color: #ff0000;\"><b>Rails\u3067\u306f\u30a2\u30bb\u30c3\u30c8\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4e2d\u3067\u8aad\u307f\u8fbc\u307f\u6642\u9593\u3092\u6e1b\u3089\u3059\u305f\u3081\u306bCSS\u3084JS\u3092\u9023\u7d50\u3057\u3066\u3044\u307e\u3059<\/b><\/span>\u304c\u3053\u308c\u306f\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306f\u7279\u5b9a\u306e\u8a18\u8ff0\u65b9\u6cd5\uff08\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\uff09\u3067\u53d6\u308a\u8fbc\u3080\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u30a2\u30bb\u30c3\u30c8\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3082\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"S3ikN7HpZM\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=7855\">\u3010Ruby on Rails\u3011\u30a2\u30bb\u30c3\u30c8\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u3064\u3044\u3066<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=7855&#038;embed=true#?secret=S3ikN7HpZM\" data-secret=\"S3ikN7HpZM\" width=\"500\" height=\"282\" title=\"&#8220;\u3010Ruby on Rails\u3011\u30a2\u30bb\u30c3\u30c8\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u3064\u3044\u3066&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h3>(Rails\u30a2\u30d7\u30ea\u540d)\/app\/assets\/stylesheets\/application.css<\/h3>\n<pre class=\"lang:default decode:true\">\/*\r\n * This is a manifest file that'll be compiled into application.css, which will include all the files\r\n * listed below.\r\n *\r\n * Any CSS and SCSS file within this directory, lib\/assets\/stylesheets, or any plugin's\r\n * vendor\/assets\/stylesheets directory can be referenced here using a relative path.\r\n *\r\n * You're free to add application-wide styles to this file and they'll appear at the bottom of the\r\n * compiled file so the styles you add here take precedence over styles defined in any other CSS\/SCSS\r\n * files in this directory. Styles in this file should be added after the last require_* statement.\r\n * It is generally better to create a new file per style scope.\r\n *\r\n *= require_tree .\r\n *= require_self\r\n *\/<\/pre>\n<p>\u300c*= require\u2026\u300d\u3068\u8a18\u8ff0\u3057\u3066\u3042\u308b\u5b9a\u7fa9\u306b\u6cbf\u3063\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th>require\u306e\u7a2e\u985e<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>require_tree<\/td>\n<td>application.css\u304c\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u4e0b\u306e\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<tr>\n<td>require_self<\/td>\n<td>\u81ea\u5206\u81ea\u8eab\uff08application.css\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>(Rails\u30a2\u30d7\u30ea\u540d)\/app\/assets\/javascripts\/application.js<\/h3>\n<pre class=\"lang:default decode:true\">\/\/ This is a manifest file that'll be compiled into application.js, which will include all the files\r\n\/\/ listed below.\r\n\/\/\r\n\/\/ Any JavaScript\/Coffee file within this directory, lib\/assets\/javascripts, or any plugin's\r\n\/\/ vendor\/assets\/javascripts directory can be referenced here using a relative path.\r\n\/\/\r\n\/\/ It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the\r\n\/\/ compiled file. JavaScript code in this file should be added after the last require_* statement.\r\n\/\/\r\n\/\/ Read Sprockets README (https:\/\/github.com\/rails\/sprockets#sprockets-directives) for details\r\n\/\/ about supported directives.\r\n\/\/\r\n\/\/= require rails-ujs\r\n\/\/= require activestorage\r\n\/\/= require turbolinks\r\n\/\/= require_tree .<\/pre>\n<table>\n<tbody>\n<tr>\n<th>require\u306e\u7a2e\u985e<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td>require rails-ujs<\/td>\n<td>Rails\u304c\u63d0\u4f9b\u3059\u308bJavaScript\u30d8\u30eb\u30d1\u30fc<\/td>\n<\/tr>\n<tr>\n<td>require activestorage<\/td>\n<td>\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u4ed5\u7d44\u307f\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>require turbolinks<\/td>\n<td>\u30da\u30fc\u30b8\u9077\u79fb\u3092Ajax\u5316\u3057\u3066\u9ad8\u901f\u306b\u8aad\u307f\u8fbc\u3080\u305f\u3081\u306e\u4ed5\u7d44\u307f<\/td>\n<\/tr>\n<tr>\n<td>require_tree .<\/td>\n<td>application.js(.\u306e\u3053\u3068\u3067\u3059\u3002)\u304c\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u4e0b\u306e\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 class=\"p1\">\/\/=<\/h4>\n<p class=\"p2\">\u30a2\u30bb\u30c3\u30c8\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u6307\u793a\u3092\u4f1d\u3048\u308b\u305f\u3081\u306e\u7279\u6b8a\u8a18\u53f7\u3067\u3059\u3002<\/p>\n<h4 class=\"p1\">require<\/h4>\n<p class=\"p1\">\u6307\u5b9a\u3057\u305fJavaScript\u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u6307\u5b9a\u3057\u305f\u4f4d\u7f6e\u306b\u53d6\u308a\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<h2>Webpacker\u3068\u306f\uff1f<\/h2>\n<p>Rails5.1\u3088\u308a\u8ffd\u52a0\u3055\u308c\u3066\u304a\u308aJavaScript\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u306e\u300cWebpack\u300d\u306e\u30e9\u30c3\u30d1\u30fc\u3067<span style=\"color: #ff0000;\"><strong>Rails\u3067Webpack\u3092\u4f7f\u3063\u3066\u306eJavaScript\u7ba1\u7406\u3092\u697d\u306b\u3057\u3066\u304f\u308c\u308bGem<\/strong><\/span>\u3067\u3059\u3002\u306a\u304a\u3001Webpacker\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u306b<span style=\"color: #ff0000;\"><strong>Yarn<\/strong><\/span>\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u305f\u3081Yarn\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u9808\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Sprockets\u3068\u306e\u9055\u3044<\/h2>\n<p>JavaScript\u7ba1\u7406\u3092\u697d\u306b\u3057\u3066\u304f\u308c\u308b\u4ed5\u7d44\u307f\u3068\u3057\u3066\u300cSprockets\u300d\u306b\u3088\u308b\u30a2\u30bb\u30c3\u30c8\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4ed5\u7d44\u307f\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u305f\u3060\u3001Webpacker\u306fSprockets\u306b\u6bd4\u3079\u3066\u4e0b\u8a18\u306e\u70b9\u3067\u512a\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>ES2015\u4ee5\u964d\u3067\u8a18\u8ff0\u3057\u305fJavaScript\u3092\u69d8\u3005\u306a\u30d6\u30e9\u30a6\u30b6\u3067\u5229\u7528\u3067\u304d\u308b\u3002\uff08\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\uff09<\/li>\n<li>JavaScript\u306e\u30d3\u30eb\u30c9\u30d7\u30ed\u30bb\u30b9\u3092\u3088\u308a\u67d4\u8edf\u306b\u884c\u3048\u308b\u3002<\/li>\n<\/ul>\n<p>\u5f79\u5272\u3068\u3057\u3066\u306f\u540c\u3058\u306a\u306e\u3067Sprockets\u3068Webpacker\u306e\u3069\u3061\u3089\u3092\u4f7f\u3046\u304b\u306f\u90fd\u5ea6\u9078\u629e\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\uff08\u4f75\u7528\u306f\u304a\u52e7\u3081\u3057\u307e\u305b\u3093\u3002\uff09<\/p>\n<h2>Webpacker\u3092\u5c0e\u5165\u3059\u308b\u30c7\u30e1\u30ea\u30c3\u30c8<\/h2>\n<p><span style=\"color: #ff0000;\"><strong>\u57fa\u672c\u7684\u306b\u306fWebpacker\u304cwebpack\u306e\u30e9\u30c3\u30d1\u30fc\u3067\u3042\u308b\u3053\u3068\u3067\u767a\u751f\u3059\u308b\u30c7\u30e1\u30ea\u30c3\u30c8<\/strong><\/span>\u3067\u3042\u308a\u5c0e\u5165\u5224\u65ad\u6642\u306f\u8003\u616e\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Webpacker\u304c\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u3067\u306f\u4e0d\u5341\u5206\u3060\u3063\u305f\u5834\u5408\u306b\u3001Webpack\u3092\u76f4\u63a5\u4f7f\u3046\u5834\u5408\u3067\u306f\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u4e0d\u8981\u306b\u306a\u308b\u300cWebpacker\u304c\u63d0\u4f9b\u3059\u308b\u5c02\u7528API\u300d\u3092\u5b66\u3070\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u304f\u306a\u308b\u3002<\/li>\n<li>Webpacker\u304c\u63d0\u4f9b\u3059\u308b\u4e0d\u5fc5\u8981\u306a\u6a5f\u80fd\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u5f71\u97ff\u3067\u30a2\u30d7\u30ea\u306b\u4e0d\u5177\u5408\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<h2>Webpacker\u306e\u6a5f\u80fd<\/h2>\n<ul>\n<li>Webpack\u30b3\u30de\u30f3\u30c9\u3092Rake\u30bf\u30b9\u30af\u3067\u30e9\u30c3\u30d7\u3057\u3066\u63d0\u4f9b\u3059\u308b\u3002<\/li>\n<li>Babel\u306b\u3088\u308bES2015\u30b3\u30fc\u30c9\u306e\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb<\/li>\n<li>React\/Vue.js\/Angular\u306e\u30b5\u30dd\u30fc\u30c8<\/li>\n<li>Rails\u30d3\u30e5\u30fc\u30d8\u30eb\u30d1\u30fc\u306e\u63d0\u4f9b<\/li>\n<\/ul>\n<h2>\u5c0e\u5165<\/h2>\n<p>webpacker\u3092\u5c0e\u5165\u3057\u305f\u5834\u5408\u4e0b\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u30dd\u30a4\u30f3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002\uff08\u5c0e\u5165\u65b9\u6cd5\u81ea\u4f53\u306f\u8272\u3005\u3042\u308a\u307e\u3059\u3057\u3001Rails6\u3067\u306fwebpacker\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u5b9f\u88c5\u306b\u306a\u308b\u306e\u3067\u5272\u611b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002\uff09<\/p>\n<h3>\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8<\/h3>\n<pre class=\"lang:default decode:true\">app\/javascript\/packs\/application.js<\/pre>\n<p>\u4e0a\u8a18\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308a\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u958b\u59cb\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u3053\u3068\u3067\u3059\u3002(Sprockets\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n<h4>\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8\u304b\u3089import\u3057\u305f\u3044\u5225\u306eJavaScript\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u5834\u5408<\/h4>\n<p>app\/javascript\u914d\u4e0b\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30d3\u30e5\u30fc\u304b\u3089\u8aad\u307f\u8fbc\u3080\u306b\u306f<\/h4>\n<p>\u30d3\u30e5\u30fc\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305fJavaScript\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408\u306f\u300cjavascript_pack_tag\u300d\u30d3\u30e5\u30fc\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>\u74b0\u5883\u5225\u306e\u30b3\u30f3\u30d1\u30a4\u30eb<\/h3>\n<h4>\u74b0\u5883\u8a2d\u5b9a<\/h4>\n<p>\u4e0b\u8a18\u30d5\u30a1\u30a4\u30eb\u306b\u3066\u74b0\u5883\u5225\u306e\u3069\u306e\u3088\u3046\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u304b\u306e\u8a2d\u5b9a\u3092\u6c7a\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">config\/webpacker.yml<\/pre>\n<h4>\u958b\u767a\u74b0\u5883<\/h4>\n<p>Webpacker\u7ba1\u7406\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u66f4\u65b0\u304c\u3042\u308c\u3070Rails\u30b5\u30fc\u30d0\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306b\u81ea\u52d5\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<h4>\u672c\u756a\u74b0\u5883<\/h4>\n<p>webpacker:compile\u3068\u3044\u3046Rake\u30bf\u30b9\u30af\u306b\u3066\u884c\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30a2\u30bb\u30c3\u30c8\u3068\u306f\uff1f \u30a2\u30d7\u30ea\u3092\u69cb\u6210\u3059\u308b3\u70b9\u30bb\u30c3\u30c8(\u753b\u50cf\u3001CSS\u3001JavaScript)\u306e\u7dcf\u79f0\u3067\u3059\u3002 Sprockets Rails\u3067\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3068JavaScript\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3001\u51fa\u529b\u3059\u308bHTML\u3078\u81ea\u52d5\u3067\u300c\u30de\u30cb [&hellip;]","protected":false},"author":1,"featured_media":4265,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4602"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4602"}],"version-history":[{"count":11,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4602\/revisions"}],"predecessor-version":[{"id":20550,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4602\/revisions\/20550"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/4265"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4602"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}