{"id":213565,"date":"2014-02-23T14:30:03","date_gmt":"2014-02-23T10:30:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=213565"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=213565","title":{"rendered":"<span class=\"post_title\">\u0412\u044b\u0448\u043b\u0430 Derby 0.6.0-alpha3<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 <a href=\"https:\/\/github.com\/codeparty\/derby\/\">Derby<\/a> \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0441\u043c\u0435\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0432\u0435\u0442\u043e\u043a. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u0440\u0441\u0438\u044f 0.5 \u043e\u0442\u043e\u0448\u043b\u0430 \u043d\u0430 \u0437\u0430\u0434\u043d\u0438\u0439 \u043f\u043b\u0430\u043d, 0.6 \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f. <\/p>\n<p>  \u041d\u0435 \u0432 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044f\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u043f\u0438\u0430\u0440\u043e\u043c, \u043d\u043e \u044d\u0442\u043e \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e, \u0438 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c \u0437\u043d\u0430\u0442\u044c.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0427\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c<\/h4>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0442\u0430 \u0447\u0430\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043a\u0430\u0441\u0430\u043b\u043e\u0441\u044c \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0438 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (racerjs, sharejs) \u2014 \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u043c\u0438 \u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438. \u0413\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0431\u043e\u0440\u043e\u043b\u0438\u0441\u044c \u0431\u044b\u043b\u0438: \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430, \u0435\u0435 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0433\u0440\u044f\u0437\u043d\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043d\u0430 \u0447\u0430\u0441\u0442\u044c \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0430\u044f \u0437\u0430 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433. \u0417\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u0412 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0444\u043e\u0440\u043a esprimajs \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f javascript. \u041a\u043e\u0434 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0439 \u2014 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u043e\u043b\u0435\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u0430.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043f\u043e \u043d\u0435\u0439 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 <a href=\"https:\/\/github.com\/codeparty\/derby\/blob\/master\/docs\/guides\/components.md\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>.<\/p>\n<p>  \u0421\u0435\u0440\u0432\u0435\u0440\u043d\u0430\u044f \u043b\u0430\u043f\u0448\u0430 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u043d\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u00abderby-starter\u00bb. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f derby \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0438 \u043b\u0435\u0433\u043a\u043e\u0432\u0435\u0441\u043d\u043e. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u2014 <a href=\"https:\/\/github.com\/codeparty\/derby-examples\/tree\/master\/directory\">directory<\/a>.<\/p>\n<h4>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043a\u043e\u0434\u0430<\/h4>\n<p>  \u042d\u0442\u043e \u0432\u0441\u0435\u0433\u043e-\u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u0432\u044b\u0434\u0435\u0440\u0433\u043d\u0443\u043b, \u0434\u0443\u043c\u0430\u044e \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0443\u0441\u043a\u043e\u043b\u044c\u0437\u043d\u0443\u043b\u043e \u043e\u0442 \u043c\u043e\u0435\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<pre><code class=\"html\">    \/*\u0410\u043b\u0438\u0430\u0441\u044b \u0442\u0435\u043f\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 #, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0438\u043d\u0434\u0435\u043a\u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432*\/     {{each _page.list as #todo, #index}}       \/*\u0412\u043c\u0435\u0441\u0442\u043e dervy:view - \u043f\u0440\u043e\u0441\u0442\u043e view*\/       &lt;view name=&quot;todo&quot;&gt;&lt;\/view&gt;     {{\/}} <\/code><\/pre>\n<pre><code class=\"html\">  \/*x-bind \u0437\u0430\u043c\u0435\u043d\u0435\u043d 'on-' \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u0436\u0435 \u043a\u043e\u0434 \u043d\u0430 JS*\/   &lt;button on-click=&quot;model.set('titleColor', this.name)&quot;&gt;Select&lt;\/button&gt; <\/code><\/pre>\n<pre><code class=\"html\">{{each _page.people}}   &lt;tr&gt;     \/*\u0412\u043c\u0435\u0441\u0442\u043e . \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043a\u043e\u0443\u043f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 this - \u043a\u0430\u043a-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e \u0438 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e*\/     &lt;td&gt;&lt;a href=&quot;\/people\/{{this.id}}&quot;&gt;{{this.name}}&lt;\/a&gt;&lt;\/td&gt;     &lt;td&gt;{{this.phone}}&lt;\/td&gt;     &lt;td&gt;&lt;a href=&quot;mailto:{{this.email}}&quot;&gt;{{this.email}}&lt;\/a&gt;&lt;\/td&gt;     &lt;td&gt;&lt;a href=&quot;http:\/\/twitter.com\/{{this.twitter}}&quot;&gt;{{this.twitter}}&lt;\/a&gt;&lt;\/td&gt;     &lt;td&gt;{{this.gender}}&lt;\/td&gt;   &lt;\/tr&gt; {{\/}} <\/code><\/pre>\n<pre><code class=\"javascript\">\/\/ \u0412\u043c\u0435\u0441\u0442\u043e app.fn - \u0442\u0435\u043f\u0435\u0440\u044c app.proto, \u043d\u043e \u044d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u0435\u043a\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \/\/ \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0441\u0432\u043e\u0439 \u0441\u043a\u043e\u0443\u043f, \u0438 \u0441\u0432\u043e\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 app.proto.cancel = function() {   app.history.back(); }; <\/code><\/pre>\n<h4>Todo-\u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438<\/h4>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;Body:&gt;   &lt;view     name=&quot;todos-new&quot;     on-submit=&quot;list.add()&quot;     label=&quot;Add todo&quot;     autofocus&gt;   &lt;\/view&gt;   &lt;view     name=&quot;todos-list&quot;     as=&quot;list&quot;     items=&quot;{{_page.items}}&quot;&gt;   &lt;\/view&gt;  &lt;todos-new:&gt;   &lt;form on-submit=&quot;submit()&quot;&gt;     &lt;input type=&quot;text&quot; value=&quot;{{value}}&quot; placeholder=&quot;{{@placeholder}}&quot; autofocus=&quot;{{@autofocus}}&quot;&gt;     &lt;button type=&quot;submit&quot;&gt;{{@label}}&lt;\/button&gt;   &lt;\/form&gt;  &lt;todos-list:&gt;   &lt;ul&gt;     {{each @items as #item, #i}}       &lt;li&gt;         &lt;input type=&quot;checkbox&quot; checked=&quot;{{#item.checked}}&quot;&gt;         {{#item.text}}         &lt;button type=&quot;button&quot; on-click=&quot;remove(#i)&quot;&gt;Delete&lt;\/button&gt;       &lt;\/li&gt;     {{\/each}}   &lt;\/ul&gt; <\/code><\/pre>\n<pre><code class=\"coffeescript\">app.component 'todos-new', class TodosNew   submit: -&gt;     value = @model.del 'value'     @emit 'submit', value  app.component 'todos-list', class TodosList   add: (text) -&gt;     @model.push 'list', {text}   remove: (index) -&gt;     @model.remove 'list', index <\/code><\/pre>\n<p>  <b>P.S.<\/b><br \/>  \u0417\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439 \u0448\u0435\u0441\u0442\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0432 \u0441\u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0441\u043a\u043e\u043c \u0442\u0435\u043c\u043f\u0435 \u043f\u0435\u0440\u0435\u0431\u0435\u0436\u0430\u043b\u0430 \u0441 1 \u043f\u043e 3 \u0430\u043b\u044c\u0444\u0430-\u0432\u0435\u0440\u0441\u0438\u0438. \u0412 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u0435\u043c \u0431\u0435\u0442\u044b. <\/p>\n<p>  <b>P.P.S<\/b><br \/>  \u0412\u0441\u0435\u043c \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f <a href=\"https:\/\/github.com\/codeparty\/derby-examples\">derby-examples<\/a> \u2014 \u043e\u043d\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u043f\u043e\u0434 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e.    \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\/213565\/\"> http:\/\/habrahabr.ru\/post\/213565\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 <a href=\"https:\/\/github.com\/codeparty\/derby\/\">Derby<\/a> \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0441\u043c\u0435\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0432\u0435\u0442\u043e\u043a. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0435\u0440\u0441\u0438\u044f 0.5 \u043e\u0442\u043e\u0448\u043b\u0430 \u043d\u0430 \u0437\u0430\u0434\u043d\u0438\u0439 \u043f\u043b\u0430\u043d, 0.6 \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f. <\/p>\n<p>  \u041d\u0435 \u0432 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044f\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u043f\u0438\u0430\u0440\u043e\u043c, \u043d\u043e \u044d\u0442\u043e \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e, \u0438 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c \u0437\u043d\u0430\u0442\u044c.  <\/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-213565","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213565","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=213565"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213565\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}