{"id":197066,"date":"2013-10-11T17:43:02","date_gmt":"2013-10-11T13:43:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=197066"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=197066","title":{"rendered":"<span class=\"post_title\">(M)VC Framework Locomotive<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0423\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u043f\u043e\u0434\u0431\u043e\u0440\u043e\u043c Node.js \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0435\u043c\u043e \u0437\u0430\u0434\u0430\u0447. \u041f\u0440\u043e\u0448\u0435\u043b \u044f 4 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 (<a href=\"http:\/\/locomotivejs.org\/\">Locomotive<\/a>, <a href=\"http:\/\/expressjs.com\/\">Express<\/a>, <a href=\"http:\/\/geddyjs.org\">Geddy<\/a>, <a href=\"http:\/\/sailsjs.org\/\">Sails<\/a>) \u0438 \u0446\u0438\u043a\u043b \u0441\u0432\u043e\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441 Locomotive.<\/p>\n<p>  Locomotive \u0432 \u043f\u043e\u043b\u0435 \u043c\u043e\u0435\u0433\u043e \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0430\u043b \u043f\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043c\u043e\u0435\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043b: \u201c\u0421\u043b\u0443\u0448\u0430\u0439 \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 MVC \u043f\u043e\u0432\u0435\u0440\u0445 Express.\u201d \u2014 \u0438 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u043e \u0447\u0442\u043e \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e Locomotive \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u201c\u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u044b\u0445\u201d.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 Locomotive \u0438 \u043e\u0431\u0449\u0438\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438<\/h2>\n<p>  Locomotive \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a: \u201c\u0421\u0442\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 MVC \u0438 REST \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432, \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u0439 \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0445\u043e\u0440\u043e\u0448\u043e \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439\u201c \u2014 \u043d\u043e \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u201c<a href=\"http:\/\/en.wikipedia.org\/wiki\/Model_2\">MVC<\/a>\u201d \u0432\u043d\u0443\u0442\u0440\u0438 Locomotive \u043c\u0430\u043b\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c, \u043e\u043d\u043e \u043a\u0430\u043a \u0431\u044b \u0435\u0441\u0442\u044c, \u043d\u043e, \u0432 \u0442\u043e\u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u0430\u043a-\u0442\u043e \u043d\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430. \u0422\u0430\u043a\u043e\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u00abModel\u00bb \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0445\u043e\u0442\u044f \u0431\u044b \u0432 \u043a\u0430\u043a\u043e\u043c \u0442\u043e \u0432\u0438\u0434\u0435, \u043d\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Locomotive \u0430\u0432\u0442\u043e\u0440 \u0441\u043e\u0441\u043b\u0430\u043b\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u044e <a href=\"http:\/\/martinfowler.com\/bliki\/PolyglotPersistence.html\">\u00abpolyglot persistence\u00bb<\/a> \u0438 \u0441\u043a\u0430\u0437\u0430\u043b \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u043b \u0441\u0430\u043c\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c Database &#038; ORM \u0438 \u0441\u0430\u043c\u0438 \u00ab\u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c\u00bb \u043a \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0443, \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0430\u0432\u0442\u043e\u0440\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0441\u0447\u0435\u0442 \u0431\u044b\u043b \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u044d\u0442\u043e\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u043e\u043d \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Model_2\">MVC (Model2)<\/a> \u0432 \u043f\u043e\u043b\u043d\u043e\u043c \u043e\u0431\u044a\u0435\u043c\u0435. \u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0430\u043c \u0442\u0430\u043a\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e. <br \/>  \u00abView\u00bb \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0437\u0430 \u0441\u0447\u0435\u0442 Express \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u0435\u0440\u0430\u043c\u0438 \u043a\u0430\u043a <a href=\"http:\/\/jade-lang.com\/\">Jade<\/a>, <a href=\"https:\/\/github.com\/visionmedia\/ejs\">Ejs<\/a> \u0438 <a href=\"https:\/\/github.com\/visionmedia\/express\/wiki\">\u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445<\/a>.<br \/>  \u201cController\u201d \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d, \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u0430, \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c Request \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c Response. \u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u0430, \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0440\u043e\u0443\u0442\u0438\u043d\u0433\u0430 \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430:<\/p>\n<pre><code>var SearchController = new Controller();  SearchController.find = function() {   this.query = this.param('query');   \/\/ execute search query... }  module.exports = SearchController; <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u201c\u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439\u201d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u0432\u043b\u0435\u0437\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434\/\u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u0430\u043a\u043e\u0433\u043e \u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f (\u0432 Locomotive \u044d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u201c<a href=\"http:\/\/locomotivejs.org\/guide\/filters\/\">Filters<\/a>\u201d):<\/p>\n<pre><code>PhotosController.before('show', function(next) {   var self = this;   if (this.param('id')) {      next();   } else {      return next(\u201cError\u201d);   } });  PhotosController.show = function() {   this.render(); } <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u201c\u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u201d \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0434 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u201cshow\u201d, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0441\u043b\u043e\u0439 \u0433\u0434\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438\u043b\u0438 \u0435\u0433\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438. \u0422\u0430\u043a\u0436\u0435, \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u201c\u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439\u201d \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043b\u044e\u0431\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u0435:<\/p>\n<pre><code>PhotosController.before('*', function(next) {   \/\/\u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043b\u044e\u0431\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0432 PhotosController }); <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u043a\u0440\u043e\u043c\u0435 \u201c\u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u043e\u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439\u201d \u0432 Locomotive \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u201ccontent negotiations\u201d(http:\/\/en.wikipedia.org\/wiki\/Content_negotiation), \u0442\u043e-\u0435\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043b \u043a\u043b\u0438\u0435\u043d\u0442, \u043a\u0440\u0430\u0442\u043a\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>PhotosController.index = function() {   this.respond({     'xml': { template: 'feed' },     'html': { template: 'index' }   }); } <\/code><\/pre>\n<p>  \u0422\u043e-\u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440 PhotosController \u0432\u0435\u0440\u043d\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0434\u0432\u0443\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u043e \u0442\u043e\u0433\u043e \u043a\u0430\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445. \u041f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 Accept \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0435\u0440\u043d\u0435\u0442 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d index:<\/p>\n<p>  <code>Accept: text\/html;<\/code><\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u043e\u043a\u0440\u0443\u0433 \u044d\u0442\u0438\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043a\u0443\u0447\u0430 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u201c\u043f\u043b\u044e\u0448\u0435\u0447\u0435\u043a\u201d, \u043d\u043e \u044f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u043d\u0435 \u0432\u0438\u0436\u0443 \u0441\u043c\u044b\u0441\u043b\u0430 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e. <\/p>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0447\u0442\u043e \u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432 Locomotive \u044d\u0442\u043e \u0442\u043e \u043a\u0430\u043a \u043e\u043d\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043b\u0438 <a href=\"http:\/\/locomotivejs.org\/guide\/routing\/\">\u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e<\/a> Express. \u041e\u043d\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 match() \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 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0441 \u201cplaceholder\u201d:<\/p>\n<pre><code>  this.match('songs\/:title', { controller: 'songs', action: 'show' }); <\/code><\/pre>\n<p>  \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u201c\u0441\u0430\u0445\u0430\u0440\u043e\u043a\u201d, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u0430 \u0446\u0435\u043b\u044b\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 REST \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u0422\u043e-\u0435\u0441\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u0432\u043e\u0442 \u0441\u0442\u0440\u043e\u0447\u043a\u0430:<\/p>\n<pre><code>  this.resources('photos'); <\/code><\/pre>\n<p>  \u0421\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0442\u0430\u043a\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043a\u0430\u043a:<\/p>\n<table>\n<tr>\n<th>\u041c\u0435\u0442\u043e\u0434:<\/th>\n<th>\u041c\u0430\u0440\u0448\u0440\u0443\u0442:<\/th>\n<th>\u041f\u0440\u043e\u043c\u0430\u043f\u0438\u0442 \u043d\u0430 action:<\/th>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/photos<\/td>\n<td>index<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/photos\/new<\/td>\n<td>new<\/td>\n<\/tr>\n<tr>\n<td>POST<\/td>\n<td>\/photos<\/td>\n<td>create<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/photos\/:id<\/td>\n<td>show<\/td>\n<\/tr>\n<tr>\n<td>GET<\/td>\n<td>\/photos\/:id\/edit<\/td>\n<td>edit<\/td>\n<\/tr>\n<tr>\n<td>PUT<\/td>\n<td>\/photos\/:id<\/td>\n<td>update<\/td>\n<\/tr>\n<tr>\n<td>DELETE<\/td>\n<td>\/photos\/:id<\/td>\n<td>destroy<\/td>\n<\/tr>\n<\/table>\n<p>  \u0418 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u0440\u043e\u043c PhotosController \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u0438\u0437 \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u201c\u041f\u0440\u043e\u043c\u0430\u043f\u0438\u0442 \u043d\u0430 action\u201d. \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u0447\u0442\u043e\u0431\u044b \u0432\u0440\u0435\u043c\u044f \u0441 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c. \u0412\u043e\u043a\u0440\u0443\u0433 \u044d\u0442\u0438\u0445 \u0432\u0441\u0435\u0445 \u201c\u0444\u0438\u0448\u0435\u0447\u0435\u043a\u201d \u043f\u043e\u043b\u043d\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0439 \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u043d\u0430\u0434\u043e \u0434\u0443\u043c\u0430\u0442\u044c: \u201c\u0410\u0410\u0410\u0410\u0410\u0410 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e show \u0438 edit\u201d \u2014 \u043e\u0431 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0442\u043e\u0436\u0435 <a href=\"http:\/\/locomotivejs.org\/guide\/resources\/\">\u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u043b\u0441\u044f<\/a>. <\/p>\n<h2>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435<\/h2>\n<p>  \u201c\u042f \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b, \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b Locomotive + Socket.io \u0438 \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0435 \u0434\u0435\u043c\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0442\u0435\u043b\u201d, \u2014 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043c\u043d\u0435 \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043c\u0430\u0441\u0441\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. Locomotive \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435 \u043b\u0435\u0433\u043a\u043e \u043a\u0430\u043a Express:<\/p>\n<pre><code class=\"bash\">npm install locomotive -g <\/code><\/pre>\n<p>  \u0430 \u043f\u043e\u0442\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442:  <\/p>\n<pre><code class=\"bash\">lcm create project <\/code><\/pre>\n<p>  \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:  <\/p>\n<pre><code class=\"bash\">cd project && lcm server <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u043f\u043e\u043a\u0430, \u0435\u0441\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430 <a href=\"http:\/\/localhost:3000\">http:\/\/localhost:3000<\/a> \u0442\u043e \u0441 \u0432\u0430\u043c\u0438 \u0432\u0435\u0441\u0435\u043b\u043e \u043f\u043e\u0437\u0434\u043e\u0440\u043e\u0432\u0430\u0435\u0442\u0441\u044f Locomotive.<br \/>  \u041d\u043e \u043c\u043e\u044f \u0446\u0435\u043b\u044c \u0431\u044b\u043b\u0430, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u0430\u043a Locomotive \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043c\u043e\u0433 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c Web Socket \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b.<br \/>  \u0421 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435\u0442, \u0442\u0430\u043a \u043a\u0430\u043a Locomotive \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043f\u043e\u0432\u0435\u0440\u0445 Express, \u0438 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 Express \u0442\u0430\u043a \u043e\u043d\u043e \u0438 \u0432 Locomotive. <br \/>  \u041d\u043e \u0432\u043e\u0442 \u0441 Web Sockets \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f. \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a Locomotive \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Express (app) \u043e\u0431\u044c\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u043e \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043e\u0431\u0440\u0435\u0437\u0430\u0432 \u043a\u0430\u043a\u0443\u044e \u043b\u0438\u0431\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442\u044c Express \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 Express.io (\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u043f\u043e \u043f\u0440\u043e\u043f\u0430\u0442\u0447\u0438\u0442\u044c \u043a\u043e\u0434, \u043d\u043e \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0448\u0438 \u043c\u0435\u0442\u043e\u0434\u044b). \u0422\u043e\u0433\u0434\u0430 \u044f \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 \u0438\u0434\u0435\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Express.io \u0445\u043e\u0442\u044f \u043e\u043d\u0430 \u0431\u044b\u043b\u0430 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u043a Locomotive \u0442\u0430\u043a \u043a\u0430\u043a Express.io \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043b\u043e\u0436\u0438\u0442\u044c\u0441\u044f \u043d\u0430 Express \u043f\u043e\u0432\u0435\u0440\u0445 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e Locomotive \u043d\u0430\u043f\u0438\u0441\u0430\u043d. \u0422\u043e\u0433\u0434\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Socket.io, \u043d\u043e \u0438 \u0442\u0443\u0442 \u043c\u0435\u043d\u044f \u043e\u0436\u0438\u0434\u0430\u043b\u043e \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0412\u043e\u0442 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0441\u044b\u043b\u043e\u0447\u043a\u0438 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043b\u044e\u0434\u0438 <a href=\"https:\/\/groups.google.com\/forum\/%23!topic\/locomotivejs\/WnKmRpr-i1k\">\u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0431\u0435\u0437 \u201c\u043a\u0430\u0441\u0442\u044b\u043b\u0435\u0439\u201d<\/a>, \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a Locomotive \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0442\u043e\u0440\u043e\u043f\u0438\u0442\u0441\u044f <a href=\"https:\/\/github.com\/jaredhanson\/locomotive\/pull\/88\">\u00ab\u043c\u0435\u0440\u0434\u0436\u0438\u0442\u044c pull requests\u00bb \u043d\u0430 Github<\/a>. \u0414\u0430 \u0438 \u043a\u0430\u043a \u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u043e\u0445\u043e\u0434\u0443 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0438\u0434\u0435\u0442 \u043d\u0430\u0434 \u044d\u0442\u0438\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c \u0441\u0443\u0434\u044f \u043f\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043d\u0430 Github. <\/p>\n<p>  <\/p>\n<h2>\u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Locomotive \u043d\u0435 \u043f\u043b\u043e\u0445\u0430\u044f, \u043d\u043e \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u043d\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u0430\u044f \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e, \u0442\u043e-\u0435\u0441\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0439 \u0447\u0442\u043e \u0442\u043e \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u043e\u0435 \u044f \u0431\u044b \u043d\u0435 \u0440\u0438\u0441\u043a\u043d\u0443\u043b, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043c\u043d\u043e\u0433\u043e \u043f\u0430\u0447\u0438\u0442\u044c \u0441\u0430\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a.<br \/>  \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u201cLanding Page\u201d, \u201c\u0412\u0438\u0437\u0438\u0442\u043a\u0443\u201d, \u0442\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e Locomotive \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442. <\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u043b\u0438\u0442\u0435\u0440\u0442\u0443\u0440\u0430:<\/p>\n<p>  <a href=\"http:\/\/locomotivejs.org\/guide\/\">http:\/\/locomotivejs.org\/guide<\/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\/197066\/\"> http:\/\/habrahabr.ru\/post\/197066\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0423\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439 \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u043f\u043e\u0434\u0431\u043e\u0440\u043e\u043c Node.js \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0435\u043c\u043e \u0437\u0430\u0434\u0430\u0447. \u041f\u0440\u043e\u0448\u0435\u043b \u044f 4 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 (<a href=\"http:\/\/locomotivejs.org\/\">Locomotive<\/a>, <a href=\"http:\/\/expressjs.com\/\">Express<\/a>, <a href=\"http:\/\/geddyjs.org\">Geddy<\/a>, <a href=\"http:\/\/sailsjs.org\/\">Sails<\/a>) \u0438 \u0446\u0438\u043a\u043b \u0441\u0432\u043e\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0447\u0430\u0442\u044c \u0441 Locomotive.<\/p>\n<p>  Locomotive \u0432 \u043f\u043e\u043b\u0435 \u043c\u043e\u0435\u0433\u043e \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0430\u043b \u043f\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043c\u043e\u0435\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043b: \u201c\u0421\u043b\u0443\u0448\u0430\u0439 \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 MVC \u043f\u043e\u0432\u0435\u0440\u0445 Express.\u201d \u2014 \u0438 \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u043e \u0447\u0442\u043e \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e Locomotive \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u201c\u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u044b\u0445\u201d.  <\/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-197066","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197066","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=197066"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197066\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=197066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=197066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=197066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}