{"id":302528,"date":"2020-04-26T15:00:28","date_gmt":"2020-04-26T15:00:28","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=302528"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-04-26T15:00:28","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=302528","title":{"rendered":"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 HTML"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/499106\/\">\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0435\u0449\u0435 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430. \u0421\u0443\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430 HTML, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u0435\u0437 JavaScript&#8217;\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438 \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0435 \u0432\u0435\u0449\u0438: \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u043e\u0440\u043c\u044b \u0432 json \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 HTML \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443(\u043f\u043e \u0441\u0443\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043b\u044f HTML \u0447\u0435\u0440\u0435\u0437 http\/s \u0437\u0430\u043f\u0440\u043e\u0441\u044b), \u0442\u0443\u0440\u0431\u043e\u043b\u0438\u043d\u043a\u0438(\u043f\u0440\u0438\u0432\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c RoR), \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 ajax \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0435\u0449\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/751\/089\/763\/75108976319e3573f6e3945b107b4321.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/Guseyn\/EHTML\" rel=\"nofollow\">EHTML<\/a> \u0438\u043b\u0438 Extended HTML. \u041e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043e\u043d\u0430 \u043d\u0430 \u043d\u0435\u0431\u0435\u0437\u044b\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438\u0434\u0435\u0435 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Web_Components\" rel=\"nofollow\">\u0432\u0435\u0431 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/a>. \u041e\u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043d\u0430 <a href=\"https:\/\/github.com\/Guseyn\/EHTML\" rel=\"nofollow\">\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>, \u0442\u0430\u043c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0438\u0448\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0434\u0435\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u044d\u0442\u043e \u0437\u0430\u0439\u0434\u0435\u0442.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h1 id=\"podklyuchenie-biblioteki\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043b\u0438\u0431\u044b \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u043d\u0438 npm, \u043d\u0438 cli \u0442\u0443\u043b\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432\u0441\u0435 \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u2014 \u044d\u0442\u043e HTML \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0438, \u0433\u0434\u0435 \u0432\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435 <a href=\"https:\/\/github.com\/Guseyn\/EHTML\/blob\/master\/ehtml.bundle.min.js\" rel=\"nofollow\">\u0441\u043a\u0440\u0438\u043f\u0442<\/a> \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;head&gt;   &lt;script src=&quot;\/..\/js\/ehtml.bundle.min.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt; &lt;\/head&gt;<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"modulnaya-sistema\">\u041c\u043e\u0434\u0443\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u2014 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 HTML \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0438 \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0434\u0440\u0443\u0433\u0438\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot; lang=&quot;en&quot;&gt;   &lt;head&gt;     &lt;script src=&quot;\/..\/js\/ehtml.bundle.min.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;   &lt;\/head&gt;    &lt;body class=&quot;main&quot;&gt;     &lt;div class=&quot;articles&quot;&gt;       &lt;e-html data-src=&quot;\/..\/html\/first.html&quot;&gt;&lt;\/e-html&gt;       &lt;e-html data-src=&quot;\/..\/html\/second.html&quot;&gt;&lt;\/e-html&gt;       &lt;e-html data-src=&quot;\/..\/html\/third.html&quot;&gt;&lt;\/e-html&gt;     &lt;\/div&gt;   &lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <code>e-html<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <code>data-src<\/code>, \u0433\u0434\u0435 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0433\u0434\u0435 \u0440\u0430\u0437\u0434\u0430\u0435\u0442\u0441\u044f HTML \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>first.html<\/code> \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div class=&quot;article&quot;&gt;   &lt;!-- some content of the first article --&gt; &lt;\/div&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0442\u043e \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435, \u043d\u0430\u0448\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0440\u0435\u043d\u0434\u0435\u0440\u0435\u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot; lang=&quot;en&quot;&gt;   &lt;head&gt;     &lt;script src=&quot;\/..\/js\/ehtml.bundle.min.js&quot; type=&quot;text\/javascript&quot;&gt;&lt;\/script&gt;   &lt;\/head&gt;    &lt;body class=&quot;main&quot;&gt;     &lt;div class=&quot;articles&quot;&gt;       &lt;div class=&quot;article&quot;&gt;         &lt;!-- content of the first article --&gt;       &lt;\/div&gt;       &lt;div class=&quot;article&quot;&gt;         &lt;!-- content of the second article --&gt;       &lt;\/div&gt;       &lt;div class=&quot;article&quot;&gt;         &lt;!-- content of the third article --&gt;       &lt;\/div&gt;     &lt;\/div&gt;   &lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0435\u0433\u0438 <code>e-html<\/code> \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043c\u0435\u043d\u0435\u043d\u044b \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u0438\u0437 HTML \u0444\u0430\u0439\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432 <code>data-src<\/code> \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0448\u0438\u0440\u043e\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 \u0442\u0435\u0433\u043e\u043c <code>template<\/code>. <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/template\" rel=\"nofollow\">\u0422\u0443\u0442<\/a> \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u0440\u043e \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>e-wrapper<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043b\u0438\u0431\u044b. \u041f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e <code>&lt;template\/&gt;<\/code> \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c <code>is=&quot;e-wrapper&quot;<\/code> \u0438 \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0432\u0440\u0430\u043f\u0438\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043a\u0430\u043a\u0438\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c. \u0422\u043e \u0435\u0441\u0442\u044c \u0441\u043a\u0430\u0436\u0435\u043c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;!-- \/..\/html\/wrapper.html --&gt; &lt;div class=&quot;base&quot;&gt;   &lt;p&gt;     Header content   &lt;\/p&gt;   &lt;p id=&quot;dynamic-content&quot;&gt;     &lt;span&gt;Default content&lt;\/span&gt;   &lt;\/p&gt;   &lt;p&gt;     Footer content   &lt;\/p&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0441\u043a\u0430\u0436\u0435\u043c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u0432\u0440\u0430\u043f\u0438\u0442\u044c \u0438\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;body class=&quot;main&quot;&gt;   &lt;template      is=&quot;e-wrapper&quot;      data-src=&quot;\/..\/html\/wrapper.html&quot;      data-where-to-place=&quot;#dynamic-content&quot;      data-how-to-place=&quot;instead&quot;&gt;     &lt;p&gt;       Variation of content     &lt;\/p&gt;   &lt;\/template&gt; &lt;\/body&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u0441 \u043a\u043e\u0434\u043e\u043c \u0432\u044b\u0448\u0435, \u043e\u043d \u0437\u0430\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;div class=&quot;base&quot;&gt;   &lt;p&gt;     Header content   &lt;\/p&gt;   &lt;p&gt;     Variation of content   &lt;\/p&gt;   &lt;p&gt;     Footer content   &lt;\/p&gt; &lt;\/div&gt; <\/code><\/pre>\n<p>  <\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 <code>data-src<\/code> \u0432\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0435 HTML \u0444\u0430\u0439\u043b, \u043e\u0442 \u043a\u0443\u0434\u0430 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u0437\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d. \u0412 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <code>data-where-to-place<\/code> \u0432\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u043a\u0443\u0434\u0430 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u0430\u043a \u0440\u0430\u0437 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 <code>e-wrapper<\/code> \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u0430. \u041d\u0443 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>data-how-to-place<\/code> \u0432\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0435 \u043a\u0430\u043a \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u0430\u0432\u0440\u0430\u043f\u0438\u0442\u044c. \u0415\u0441\u0442\u044c \u0442\u0440\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u043f\u0446\u0438\u0438: <code>instead<\/code>(\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u043d \u0432 <code>data-where-to-place<\/code>), <code>before<\/code>(\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d \u0434\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430) \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0435\u043d\u043d\u043e <code>after<\/code> (\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <code>e-html<\/code> \u0438 <code>e-wrapper<\/code> \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c html \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u0440\u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0435 \u0434\u0435\u043b\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 http \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043e\u0434\u043d\u0430\u043a\u043e \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u044d\u0448 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u2014 \u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0438\u0432\u0435\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<h1 id=\"shablonizaciya-ajax-zaprsov\">\u0428\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f ajax \u0437\u0430\u043f\u0440\u0441\u043e\u0432<\/h1>\n<p>  <\/p>\n<p>\u0421\u043a\u0430\u0436\u0435\u043c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0434\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0430\u043b\u044c\u0431\u043e\u043c\u0435 \u0432 json \u0444\u043e\u0440\u043c\u0442\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"json\">\/..\/album\/{title} title = 'Humbug' {   &quot;title&quot;: &quot;Humbug&quot;,   &quot;artist&quot;: &quot;Arctic Monkeys&quot;,   &quot;type&quot;: &quot;studio album&quot;,   &quot;releaseDate&quot;: &quot;19 August 2009&quot;,   &quot;genre&quot;: &quot;psychedelic rock, hard rock, stoner rock, desert rock&quot;,   &quot;length&quot;: &quot;39:20&quot;,   &quot;label&quot;: &quot;Domino&quot;,   &quot;producer&quot;: &quot;James Ford, Joshua Homme&quot; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u043c <code>is=&quot;e-json&quot;<\/code>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438 \u0437\u0430\u043c\u0430\u043f\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 HTML:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;template is=&quot;e-json&quot; data-src=&quot;\/..\/album\/Humbug&quot; data-object-name=&quot;albumResponse&quot;&gt;   &lt;div data-text=&quot;Title: ${albumResponse.body.title}&quot;&gt;&lt;\/div&gt;   &lt;div data-text=&quot;Artist: ${albumResponse.body.artist}&quot;&gt;&lt;\/div&gt;   &lt;div data-text=&quot;Type: ${albumResponse.body.type}&quot;&gt;&lt;\/div&gt;   &lt;div data-text=&quot;Release date: ${albumResponse.body.releaseDate}&quot;&gt;&lt;\/div&gt;   &lt;div data-text=&quot;Genre: ${albumResponse.body.genre}&quot;&gt;&lt;\/div&gt;   &lt;div data-text=&quot;Length: ${albumResponse.body.length}&quot;&gt;&lt;\/div&gt;   &lt;div data-text=&quot;Label: ${albumResponse.body.label}&quot;&gt;&lt;\/div&gt;   &lt;div data-text=&quot;Producer: ${albumResponse.body.producer}&quot;&gt;&lt;\/div&gt; &lt;\/template&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410\u0442\u0440\u0438\u0431\u0443\u0442 <code>data-src<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043e\u0442 \u043a\u0443\u0434\u0430 \u0432\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 json \u0444\u043e\u0440\u043c\u0430\u0442\u0435, <code>data-object-name<\/code> \u2014 \u044d\u0442\u043e \u0438\u043c\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043e\u0442\u0432\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b http \u043e\u0442\u0432\u0435\u0442\u0430: <code>body<\/code>, <code>headers<\/code> \u0438 <code>statusCode<\/code>. \u0410\u0442\u0440\u0438\u0431\u0443\u0442 <code>data-text<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0435\u043a\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0435\u043d \u0432 \u0448\u0430\u0431\u043b\u043e\u043d \u0432\u043d\u0443\u0442\u0440\u0438 <code>e-json<\/code> \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0446\u0438\u043a\u043b\u044b \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0440\u0438 \u043c\u0430\u043f\u043f\u0438\u043d\u0433\u0435. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043e \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0430\u043b\u044c\u0431\u043e\u043c\u0435 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043f\u0435\u0441\u0435\u043d:<\/p>\n<p>  <\/p>\n<pre><code class=\"json\">title = 'Humbug' {   &quot;title&quot;: &quot;Humbug&quot;,   &quot;artist&quot;: &quot;Arctic Monkeys&quot;,   &quot;songs&quot;: [     { &quot;title&quot;: &quot;My Propeller&quot;, &quot;length&quot;: &quot;3:27&quot; },     { &quot;title&quot;: &quot;Crying Lightning&quot;, &quot;length&quot;: &quot;3:43&quot; },     { &quot;title&quot;: &quot;Dangerous Animals&quot;, &quot;length&quot;: &quot;3:30&quot; },     { &quot;title&quot;: &quot;Secret Door&quot;, &quot;length&quot;: &quot;3:43&quot; },     { &quot;title&quot;: &quot;Potion Approaching&quot;, &quot;length&quot;: &quot;3:32&quot; },     { &quot;title&quot;: &quot;Fire and the Thud&quot;, &quot;length&quot;: &quot;3:57&quot; },     { &quot;title&quot;: &quot;Cornerstone&quot;, &quot;length&quot;: &quot;3:18&quot; },     { &quot;title&quot;: &quot;Dance Little Liar&quot;, &quot;length&quot;: &quot;4:43&quot; },     { &quot;title&quot;: &quot;Pretty Visitors&quot;, &quot;length&quot;: &quot;3:40&quot; },     { &quot;title&quot;: &quot;The Jeweller's Hands&quot;, &quot;length&quot;: &quot;5:42&quot; }   ] }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u0430 <code>e-for-each<\/code> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0435\u0441\u0435\u043d:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;template is=&quot;e-json&quot; data-src=&quot;\/..\/album\/Humbug&quot; data-object-name=&quot;albumResponse&quot;&gt;     &lt;div data-text=&quot;Title: ${albumResponse.body.title}&quot;&gt;&lt;\/div&gt;     &lt;div data-text=&quot;Artist: ${albumResponse.body.artist}&quot;&gt;&lt;\/div&gt;      &lt;div&gt;&lt;b data-text=&quot;${albumResponse.body.songs.length} songs:&quot;&gt;&lt;\/b&gt;&lt;\/div&gt;     &lt;template        is=&quot;e-for-each&quot;       data-list-to-iterate=&quot;${albumResponse.body.songs}&quot;       data-item-name=&quot;song&quot;&gt;       &lt;div class=&quot;song-box&quot;&gt;         &lt;div data-text=&quot;No. ${song.index}\/${album.songs.length}&quot;&gt;&lt;\/div&gt;         &lt;div data-text=&quot;Title: ${song.title}&quot;&gt;&lt;\/div&gt;         &lt;div data-text=&quot;Length: ${song.length}&quot;&gt;&lt;\/div&gt;       &lt;\/div&gt;     &lt;\/template&gt; &lt;\/template&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <code>data-list-to-iterate<\/code> \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0437 \u043e\u0442\u0432\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0442\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0410 \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <code>data-item-name<\/code> \u043c\u044b \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0439\u0442\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 <code>e-for-each<\/code> \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u044b <code>e-for-each<\/code> \u0438 <code>e-if<\/code> \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043b\u0438\u0448\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0435\u0441\u0435\u043d:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;template is=&quot;e-json&quot; data-src=&quot;\/..\/album\/Humbug&quot; data-object-name=&quot;albumResponse&quot;&gt;     &lt;div data-text=&quot;Title: ${albumResponse.body.title}&quot;&gt;&lt;\/div&gt;     &lt;div data-text=&quot;Artist: ${albumResponse.body.artist}&quot;&gt;&lt;\/div&gt;      &lt;div&gt;&lt;b data-text=&quot;${albumResponse.body.songs.length} songs:&quot;&gt;&lt;\/b&gt;&lt;\/div&gt;     &lt;template is=&quot;e-for-each&quot;        data-list-to-iterate=&quot;${albumResponse.body.songs}&quot;        data-item-name=&quot;song&quot;&gt;       &lt;template           is=&quot;e-if&quot;          data-condition-to-display=&quot;${(song.length.split(':')[0] * 60 + song.length.split(':')[1] * 1) &lt;= 210}&quot;       &gt;         &lt;div class=&quot;song-box&quot;&gt;           &lt;div data-text=&quot;No. ${song.index}\/${album.songs.length}&quot;&gt;&lt;\/div&gt;           &lt;div data-text=&quot;Title: ${song.title}&quot;&gt;&lt;\/div&gt;           &lt;div data-text=&quot;Length: ${song.length}&quot;&gt;&lt;\/div&gt;         &lt;\/div&gt;       &lt;\/template&gt;     &lt;\/template&gt; &lt;\/template&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0435 <code>data-condition-to-display<\/code> \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u0430 <code>e-if<\/code> \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0442\u043e\u0442 \u0438\u043b\u0438 \u0438\u043d\u043e\u0439 \u0430\u0439\u0442\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<h1 id=\"otpravka-formy\">\u041e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u043e\u0440\u043c\u044b<\/h1>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u2014 \u044d\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u043e\u0440\u043c. \u041e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043d\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0444\u043e\u0440\u043c\u044b \u0432 json \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <code>e-form<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\/\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0430\u043b\u044c\u0431\u043e\u043c\u044b:<\/p>\n<p>  <\/p>\n<pre><code class=\"json\">\/artist\/{name}\/albums\/add  name = 'Arctic Monkeys' POST Example of expected request body: {   &quot;title&quot;: &quot;Humbug&quot;,   &quot;type&quot;: &quot;studio album&quot;,   &quot;releaseDate&quot;: &quot;19 August 2009&quot;,   &quot;genre&quot;: [&quot;psychedelic rock&quot;, &quot;hard rock&quot;, &quot;stoner rock&quot;, &quot;desert rock&quot;],   &quot;length&quot;: &quot;39:20&quot;,   &quot;label&quot;: &quot;Domino&quot;,   &quot;producer&quot;: &quot;James Ford, Joshua Homme&quot; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e\u0433\u0434\u0430 \u0444\u043e\u0440\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;e-form&gt;    Title:   &lt;input type=&quot;text&quot; name=&quot;title&quot;&gt;    Type:   &lt;input type=&quot;radio&quot; name=&quot;type&quot; value=&quot;studio album&quot; checked&gt;   &lt;label for=&quot;one&quot;&gt;One&lt;\/label&gt;    &lt;input type=&quot;radio&quot; name=&quot;type&quot; value=&quot;live album&quot; checked&gt;   &lt;label for=&quot;one&quot;&gt;One&lt;\/label&gt;    Release date:   &lt;input type=&quot;date&quot; name=&quot;releaseDate&quot;&gt;    Genre:   &lt;input type=&quot;checkbox&quot; name=&quot;genre&quot; value=&quot;psychedelic rock&quot;&gt;   &lt;input type=&quot;checkbox&quot; name=&quot;genre&quot; value=&quot;hard rock&quot;&gt;   &lt;input type=&quot;checkbox&quot; name=&quot;genre&quot; value=&quot;stoner rock&quot;&gt;   &lt;input type=&quot;checkbox&quot; name=&quot;genre&quot; value=&quot;desert rock&quot;&gt;    Total length:   &lt;input type=&quot;time&quot; name=&quot;totalLength&quot;&gt;    Producer:   &lt;input type=&quot;text&quot; name=&quot;producer&quot;&gt;    &lt;button     id=&quot;send&quot;     data-request-url=&quot;\/artist\/Arctic_Monkeys\/albums\/add&quot;     data-request-method=&quot;POST&quot;     data-request-headers=&quot;{}&quot;     data-ajax-icon=&quot;#ajax-icon&quot;     data-response-name=&quot;savedAlbum&quot;     onclick=&quot;this.form.submit(this)&quot;     data-actions-on-response=&quot;       logToConsole('response: ', '${savedAlbum}');     &quot;   \/&gt;    &lt;img id=&quot;ajax-icon&quot; src=&quot;\/..\/images\/ajax-loader.gif&quot;\/&gt;  &lt;\/e-form&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u043c \u0434\u0435\u0442\u0430\u043b\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u0430 \u0432 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043a\u043d\u043e\u043f\u043a\u0430. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434, \u0445\u0435\u0434\u0435\u0440\u044b, \u043f\u0443\u0442\u044c \u0434\u043b\u044f \u044d\u043d\u0434\u043e\u043f\u0438\u043d\u0442\u0430. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0436\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c ajax \u0438\u043a\u043e\u043d\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0444\u043e\u0440\u043c\u0430 \u2014 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043a\u043b\u0438\u043a. \u0418 \u0442\u0430\u043a\u0436\u0435 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u0433\u0434\u0430 \u043e\u0442\u0432\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d. \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0442\u0430\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 <a href=\"https:\/\/github.com\/Guseyn\/EHTML#supported-actions-on-response\" rel=\"nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. <\/p>\n<p>  <\/p>\n<h1 id=\"bolshe-informacii\">\u0411\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/h1>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438\u0434\u0435\u0435\u0439 \u0438 \u0434\u0430\u0436\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0432 \u0434\u0435\u043b\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0442\u043e-\u0442\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u043e \u0432 <a href=\"https:\/\/github.com\/Guseyn\/EHTML#contents\" rel=\"nofollow\">README<\/a> \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0435\u0441\u0442\u044c \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0445. \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/www.youtube.com\/watch?feature=player_embedded&amp;v=lOf0NkNtWzI\" rel=\"nofollow\">\u0432\u0438\u0434\u0435\u043e<\/a>, \u0433\u0434\u0435 \u044f \u043f\u0438\u0448\u0443 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0431\u043b\u043e\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f EHTML.<\/p>\n<p>  <\/p>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442. \u0418 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/github.com\/Guseyn\/EHTML\" rel=\"nofollow\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u043f\u0443<\/a>.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/499106\/\"> https:\/\/habr.com\/ru\/post\/499106\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/499106\/\">\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0435\u0449\u0435 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0433\u043e\u0434\u0430. \u0421\u0443\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430 HTML, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u0435\u0437 JavaScript&#8217;\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438 \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0435 \u0432\u0435\u0449\u0438: \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0444\u043e\u0440\u043c\u044b \u0432 json \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 HTML \u0442\u0438\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443(\u043f\u043e \u0441\u0443\u0442\u0438 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043b\u044f HTML \u0447\u0435\u0440\u0435\u0437 http\/s \u0437\u0430\u043f\u0440\u043e\u0441\u044b), \u0442\u0443\u0440\u0431\u043e\u043b\u0438\u043d\u043a\u0438(\u043f\u0440\u0438\u0432\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c RoR), \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 ajax \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0435\u0449\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/751\/089\/763\/75108976319e3573f6e3945b107b4321.svg\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/Guseyn\/EHTML\" rel=\"nofollow\">EHTML<\/a> \u0438\u043b\u0438 Extended HTML. \u041e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043e\u043d\u0430 \u043d\u0430 \u043d\u0435\u0431\u0435\u0437\u044b\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u0438\u0434\u0435\u0435 <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Web_Components\" rel=\"nofollow\">\u0432\u0435\u0431 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/a>. \u041e\u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043d\u0430 <a href=\"https:\/\/github.com\/Guseyn\/EHTML\" rel=\"nofollow\">\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>, \u0442\u0430\u043c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0438\u0448\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0438\u0434\u0435\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u044d\u0442\u043e \u0437\u0430\u0439\u0434\u0435\u0442.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-302528","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=302528"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302528\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=302528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=302528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=302528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}