{"id":202288,"date":"2013-11-15T15:49:03","date_gmt":"2013-11-15T11:49:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=202288"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=202288","title":{"rendered":"<span class=\"post_title\">Enyo 2. \u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h4>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430:<\/h4>\n<p>  Enyo \u2014 JavaScript framework.<br \/>  \u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b Mojo (\u0435\u0449\u0435 \u043e\u0434\u0438\u043d JS framework) \u0432 \u043d\u0435\u0434\u0440\u0430\u0445 Palm \u0438 HP.<br \/>  \u041f\u0435\u0440\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u0445\u043e\u0434\u0438\u043b\u0438 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 WebOS, \u0430 \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u0432\u044b\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h4>Hello World<\/h4>\n<p>  \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0432 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u0438 \u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e \u00abindex.html\u00bb:  <\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html&gt;   &lt;head&gt;     &lt;meta charset=utf-8&gt;     &lt;title&gt;Title&lt;\/title&gt;     &lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/enyojs.com\/enyo-2.2.0\/enyo.css&quot;&gt;&lt;!--\u0421\u0442\u0438\u043b\u0438 Enyo 2.2.0--&gt;     &lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/enyojs.com\/enyo-2.2.0\/enyo.js&quot;&gt;&lt;\/script&gt;&lt;!--\u0421\u0430\u043c Enyo 2.2.0--&gt;   &lt;\/head&gt;   &lt;body&gt;    &lt;!--\u041d\u0430\u0448 Hello World--&gt;   &lt;script type=&quot;text\/javascript&quot;&gt;   enyo.kind({     name: 'App',     content: 'Hello World'   });    var app = new App()   app.renderInto(document.body);   &lt;\/script&gt;    &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043a\u043e\u0434?  <\/p>\n<ol>\n<li>\u041e\u043f\u043e\u0432\u0435\u0449\u0430\u0435\u0442 Enyo \u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u0438\u043f\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c App (\u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0438\u043f\u0430)<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0441 \u0442\u0438\u043f\u043e\u043c App<\/li>\n<li>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 renderInto \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f DOM \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/li>\n<\/ol>\n<p>  \u0415\u0441\u043b\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c DOM \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/e22\/9b2\/88e\/e229b288ec556f921dcaa708ae1e9cee.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 (\u0445\u043e\u0442\u044c \u0438 \u043d\u0435 \u044f\u0432\u043d\u043e)?  <\/p>\n<ol>\n<li>\u0422\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f (\u0441\u043c. \u041e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435)<\/li>\n<li>\u0414\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 \u00abcontent\u00bb \u043e\u0431\u044a\u0435\u043a\u0442\u0430 Enyo \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0433\u0430<\/li>\n<\/ol>\n<h4>\u041e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435.<\/h4>\n<p>  \u0413\u043e\u0432\u043e\u0440\u044f \u00ab\u0422\u0438\u043f\u00bb, \u044f \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0430 \u043d\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440. \u0422.\u0435. \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432 App \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b DOM, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u00abcontent\u00bb \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u043e\u0438 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0435.<\/p>\n<p>  \u041e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <code>&lt;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/enyojs.com\/enyo-2.2.0\/enyo.css&quot;&gt;<\/code> \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d, \u043d\u043e \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u0422\u0443\u0442 \u0438 \u0434\u0430\u043b\u0435\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u043d\u0430\u0434 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043a\u043e\u0434\u043e\u043c:  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   content: 'Hello World' }); <\/code><\/pre>\n<h4>\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b<\/h4>\n<p>  \u0418 \u0442\u0430\u043a, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0432\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u044c \u043d\u0430\u0448\u0435\u0433\u043e <code>div<\/code> \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>h1<\/code>. \u041a\u0430\u043a \u0431\u044b\u0442\u044c?<br \/>  \u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443:  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   content: '&lt;h1&gt;Header&lt;\/h1&gt;' }); <\/code><\/pre>\n<p>  \u041d\u041e! \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u043b\u0435\u0433\u043a\u0430 \u043d\u0435 \u0442\u0435\u043c\u2026 \u041a\u0430\u043a \u0436\u0435 \u0432\u043b\u043e\u0436\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442?<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0435 <code>components<\/code> \u0441 \u0442\u0438\u043f\u043e\u043c <code>Array<\/code> \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0432\u043b\u043e\u0436\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c <code>content<\/code> \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0430 \u043f\u0435\u0440\u0435\u0435\u0434\u0435\u0442 \u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442:  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   \/\/content: '&lt;h1&gt;Header&lt;\/h1&gt;'   components: [     {content: 'Header'}   ] }); <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0448 DOM \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/714\/f4d\/c80\/714f4dc808721345a1a1fdca0d2201fc.png\"\/><\/p>\n<p>  \u041f\u043e\u0447\u0442\u0438, \u043d\u043e \u043d\u0435 \u0442\u043e\u2026 \u043c\u044b \u0445\u043e\u0442\u0435\u043b\u0438 \u0432\u043b\u043e\u0436\u0438\u0442\u044c <code>h1<\/code>, \u0430 \u0432\u043b\u043e\u0436\u0438\u043b\u0438 <code>div<\/code>\u2026 \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u044d\u0442\u043e?  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   \/\/content: '&lt;h1&gt;Header&lt;\/h1&gt;'   components: [     {tag: 'h1', content: 'Header'}   ] }); <\/code><\/pre>\n<p>  \u0410 \u0432\u043e\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u041d\u041e! \u0415\u0441\u043b\u0438 <code>components<\/code> \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f <code>Array<\/code>, \u0437\u043d\u0430\u0447\u0438\u0442 \u043b\u0438 \u044d\u0442\u043e \u0447\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e? \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   \/\/content: '&lt;h1&gt;Header&lt;\/h1&gt;'   components: [     {tag: 'h1', content: 'Header'},     {tag: 'p', content: 'Tag P'},     {tag: 'span', content: 'Tag SPAN'},     {content: 'No TAG'},   ] }); <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/671\/972\/ac9\/671972ac9fe6913b87b71accd3bf9caf.png\"\/><\/p>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u043b\u043e\u0436\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432\u043d\u0443\u0442\u0440\u044c \u0443\u0436\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e?  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   \/\/content: '&lt;h1&gt;Header&lt;\/h1&gt;'   components: [     {tag: 'h1', content: 'Header'},     {components: [       {content: 'No TAG1'},       {content: 'No TAG2'}     ]},     {tag: 'span', content: 'Tag SPAN'},     {content: 'No TAG'},   ] }); <\/code><\/pre>\n<p>  \u0414\u0430 \u043d\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/96f\/552\/6d6\/96f5526d6bf6853b68b0ad3251be0e76.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430?  <\/p>\n<ol>\n<li>\u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0432 DOM \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u0435 <code>tag<\/code><\/li>\n<li>\u0414\u043b\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0435 <code>components<\/code> \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f <code>Array<\/code><\/li>\n<li>\u0425\u043e\u0442\u044c \u0438 \u043d\u0435 \u044f\u0432\u043d\u043e, \u043d\u043e \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044f <code>tag<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>div<\/code><\/li>\n<\/ol>\n<h4>\u0421\u0442\u0438\u043b\u0438<\/h4>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043d\u0430\u0448 DOM, \u043d\u043e \u043a\u0430\u043a \u0431\u044b\u0442\u044c \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432? \u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b <code>id<\/code> \u0434\u043b\u044f \u043d\u0438\u0445 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 Enyo, \u0430 <code>class<\/code> \u0438\u043b\u0438 <code>style<\/code> \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c\u2026<br \/>  \u0417\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c: \u043f\u043e\u043b\u044f <code>classes<\/code> \u0438 <code>style<\/code>! \u041e\u0431\u0430 \u0438\u043c\u0435\u044e\u0442 \u0442\u0438\u043f <code>String<\/code> \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432:  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   \/\/content: '&lt;h1&gt;Header&lt;\/h1&gt;'   components: [     {tag: 'h1', content: 'Header'},     {components: [       {content: 'No TAG1', style: 'color: red;'},       {content: 'No TAG2', classes: 'fake_class fake_class2'}     ]},     {tag: 'span', content: 'Tag SPAN'},     {content: 'No TAG'},   ] }); <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/04f\/143\/a1a\/04f143a1a976771bbb217bc25b7d4219.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430?  <\/p>\n<ol>\n<li>\u0414\u043b\u044f \u0441\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 DOM \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044f <code>classes<\/code> \u0438 <code>style<\/code><\/li>\n<\/ol>\n<h4>\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u044b<\/h4>\n<p>  \u042d\u0442\u043e \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u0432\u043e\u0438 framework&#8217;\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0436\u0438\u0434\u0430\u044e\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b <code>data-*<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0433\u0430?<br \/>  \u0418 \u044d\u0442\u043e \u0440\u0435\u0448\u0430\u0435\u043c\u043e:  <\/p>\n<pre><code class=\"javascript\">enyo.kind({   name: 'App',   \/\/content: '&lt;h1&gt;Header&lt;\/h1&gt;'   components: [     {tag: 'h1', content: 'Header'},     {components: [       {content: 'No TAG1', style: 'color: red;',  attributes: {'data-fake': 'blabla', 'data-fake-new': 'qwe'}},       {content: 'No TAG2', classes: 'fake_class fake_class2'}     ]},     {tag: 'span', content: 'Tag SPAN'},     {content: 'No TAG'},   ] }); <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/9fc\/91d\/523\/9fc91d523e2f2f22e0b0e7fbd76658e0.png\"\/><\/p>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430?  <\/p>\n<ol>\n<li>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0435 <code>attributes<\/code><\/li>\n<\/ol>\n<h4>\u0412\u044b\u0432\u043e\u0434<\/h4>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043a\u043e\u0441\u043d\u0443\u043b\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 Enyo \u0432 DOM.<br \/>  \u041a\u0440\u043e\u043c\u0435 \u044f\u0432\u043d\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f DOM \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, Enyo \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e\/\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0434\u043e\u0441\u0442\u0443\u043f \u043a json\/jsonp web \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u043c, UI, \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (layouts), \u043a\u0440\u043e\u0441\u0441-(\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u043c\/\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u043c) \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.<br \/>  \u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0439 framework \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0443 \u2014 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0438\u043c.<\/p>\n<h4>\u0421\u0441\u044b\u043b\u043a\u0438<\/h4>\n<p>  <a href=\"http:\/\/enyojs.com\">\u0421\u0430\u0439\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><br \/>  <a href=\"http:\/\/enyojs.com\/docs\/2.2.0\/platforms\/\">\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b<\/a><br \/>  <a href=\"http:\/\/enyojs.com\/gallery\/\">Enyo Community Gallery<\/a><\/p>\n<h4>\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c<\/h4>\n<p>  <a href=\"http:\/\/enyojs.com\/api\/\">Enyo API<\/a><br \/>  <a href=\"http:\/\/jsfiddle.net\/enyojs\/g7MLS\/\">Enyo \u043d\u0430 jsfiddle.net<\/a> \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/202288\/\"> http:\/\/habrahabr.ru\/post\/202288\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h4>\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0430:<\/h4>\n<p>  Enyo \u2014 JavaScript framework.<br \/>  \u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043c\u0435\u043d\u044b Mojo (\u0435\u0449\u0435 \u043e\u0434\u0438\u043d JS framework) \u0432 \u043d\u0435\u0434\u0440\u0430\u0445 Palm \u0438 HP.<br \/>  \u041f\u0435\u0440\u0432\u044b\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u0445\u043e\u0434\u0438\u043b\u0438 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 WebOS, \u0430 \u043f\u043e\u0437\u0434\u043d\u0435\u0435 \u0432\u044b\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\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-202288","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202288","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=202288"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202288\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}