{"id":271101,"date":"2015-12-24T20:40:01","date_gmt":"2015-12-24T17:40:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=271101"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=271101","title":{"rendered":"\u042d\u0440\u043b\u0430\u043d\u0433 \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 (1) -&gt; \u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e;"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ab9\/08a\/eb3\/ab908aeb3c9c4422ab0de8abe4b4a361.png\" align=\"right\"\/><br \/>  \u042f \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u0430 \u042d\u0440\u043b\u0430\u043d\u0433\u0435. \u041c\u043d\u043e\u0433\u0438\u0435 \u0445\u043e\u0442\u044f\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u042d\u0440\u043b\u0430\u043d\u0433, \u043d\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0447\u0442\u043e \u0432\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0443\u0440\u0441\u044b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u0430\u0441\u0430\u044e\u0442\u0441\u044f \u042d\u0440\u043b\u0430\u043d\u0433\u0430 \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0438 \u0434\u0430\u043b\u0435\u043a\u0438 \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 (<a href=\"http:\/\/learnyousomeerlang.com\/\">Learn You Some Erlang for great good!<\/a> \u2014 \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u043a\u043d\u0438\u0433\u0430). \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u0441\u0435 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e\u0442, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u043d\u0430\u0435\u0442 \u042d\u0440\u043b\u0430\u043d\u0433.<\/p>\n<p>  \u042d\u0442\u0430 \u0441\u0435\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0435\u0439 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u043e\u043f\u044b\u0442 \u0432 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 (PHP, Ruby, Java), \u043d\u043e \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 \u042d\u0440\u043b\u0430\u043d\u0433\u0435. <\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043b\u043e\u0433. \u041a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u0435\u0439 <a href=\"https:\/\/github.com\/denys-potapov\/n2o-blog-example\">https:\/\/github.com\/denys-potapov\/n2o-blog-example<\/a>, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/46.101.118.21:8001\/\">http:\/\/46.101.118.21:8001\/<\/a>. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  <\/p>\n<ul>\n<li>\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438;<\/li>\n<li>\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0444\u0435\u0439\u0441\u0431\u0443\u043a;<\/li>\n<li>\u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u043c \u0432 mnesia.<\/li>\n<\/ul>\n<p>  \u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/synrc\/n2o\">\u0444\u0435\u0439\u043c\u0432\u043e\u0440\u043a n2o<\/a>. \u0412\u044b\u0431\u043e\u0440 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u0435\u043d, \u043d\u043e \u0438\u0437 \u0436\u0438\u0432\u044b\u0445 <a href=\"https:\/\/github.com\/ChicagoBoss\/ChicagoBoss\/wiki\/comparison-of-erlang-web-frameworks\">\u042d\u0440\u043b\u0430\u043d\u0433 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432<\/a>, n2o \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u00ab\u044d\u0440\u043b\u0430\u043d\u0433\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u00bb, \u0432 \u0442\u043e\u0436\u0435 \u0432\u0440\u0435\u043c\u044f ChicagoBoss \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 MVC \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u042f \u0431\u0443\u0434\u0443 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432 Ubuntu, \u043d\u043e \u0441\u0445\u043e\u0436\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u041e\u0421. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u044d\u0440\u043b\u0430\u043d\u0433\u0430 <a href=\"https:\/\/www.erlang-solutions.com\/resources\/download.html\">www.erlang-solutions.com\/resources\/download.html<\/a>.<\/p>\n<h3>\u041c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439<\/h3>\n<p>  \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0432 \u042d\u0440\u043b\u0430\u043d\u0433\u0435 \u2014 <a href=\"https:\/\/github.com\/rebar\/rebar\">rebar<\/a>. \u041d\u043e, \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c mad \u043e\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 n2o, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 rebar \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445.  <\/p>\n<pre><code class=\"bash\">curl -fsSL https:\/\/raw.github.com\/synrc\/mad\/master\/mad &gt; mad  chmod +x mad  sudo cp mad \/usr\/local\/bin\/ <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0444\u0430\u0439\u043b\u043e\u0432 mad \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 inotify-tools:  <\/p>\n<pre><code class=\"bash\">sudo apt-get install inotify-tools <\/code><\/pre>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u0441\u0442\u044f\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0435\u0433\u043e:  <\/p>\n<pre><code class=\"bash\">    mad app &quot;blog&quot;     cd blog     mad deps compile plan repl <\/code><\/pre>\n<p>  \u041f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/localhost:8001\/\">http:\/\/localhost:8001\/<\/a> \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u0435\u0431\u0441\u043e\u043a\u0435\u0442\u0443 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u043e\u043c\u0443 \u0441 \u0441\u043e\u0431\u043e\u0439 \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u043e\u043a\u043e\u043d. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/3e7\/7b7\/0dd\/3e77b70dd4814b4f8950812a48c79df0.png\"\/><\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b mad \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:  <\/p>\n<ul>\n<li>deps \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438;<\/li>\n<li>compile \u2014 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435;<\/li>\n<li>plan \u2014 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043b\u0430\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430;<\/li>\n<li>repl \u2014 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c.<\/li>\n<\/ul>\n<h3>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u0434\u043b\u044f \u042d\u0440\u043b\u0430\u043d\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439:  <\/p>\n<pre> \u251c\u2500\u2500 apps     \u251c\u2500\u2500 rebar.config     \u2514\u2500\u2500 sample         \u251c\u2500\u2500 ebin         \u2502   \u251c\u2500\u2500 ...         \u251c\u2500\u2500 priv         \u2502   \u251c\u2500\u2500 static         \u2502   \u2502   ...         \u2502   \u2514\u2500\u2500 templates         \u2502       \u2514\u2500\u2500 index.html         \u251c\u2500\u2500 rebar.config         \u2514\u2500\u2500 src             \u251c\u2500\u2500 index.erl             \u251c\u2500\u2500 routes.erl             \u251c\u2500\u2500 sample.app.src             \u2514\u2500\u2500 sample.erl \u251c\u2500\u2500 deps \u251c\u2500\u2500 rebar.config \u2514\u2500\u2500 sys.config <\/pre>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 <a href=\"http:\/\/www.erlang.org\/doc\/design_principles\/applications.html\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>. <br \/>  \u041f\u043e\u0437\u0436\u0435 \u043c\u044b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043c\u0441\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438 \u043f\u0430\u043f\u043a\u0430\u043c\u0438, \u0430 \u043f\u043e\u043a\u0430 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u042d\u0440\u043b\u0430\u043d\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043f\u0430\u043f\u043a\u0435 apps. \u0423 \u043d\u0430\u0441 \u0442\u0430\u043c \u043e\u0434\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 sample, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c:  <\/p>\n<ul>\n<li>src \u2014 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434;<\/li>\n<li>ebin \u2014 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b;<\/li>\n<li>priv \u2014 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438 \u0441\u0442\u0430\u0442\u0438\u043a\u0430;<\/li>\n<li>index.erl \u2014 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430.<\/li>\n<\/ul>\n<h2>\u041f\u0435\u0440\u0432\u044b\u0439 \u043a\u043e\u0434<\/h2>\n<p>  \u0423\u0434\u0430\u043b\u0438\u043c \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<pre><code class=\"bash\">rm -r apps\/sample\/priv\/static\/ <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ErlyDTL, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e Django Template Language \u043d\u0430 \u044d\u0440\u043b\u0430\u043d\u0433\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u0435\u043d \u0442\u0435\u043c, \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0441 Django-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c\u0438 (Django, Twig, Mustache).<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">apps\/sample\/priv\/templates\/base.html<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt;   &lt;head&gt;     &lt;meta charset=&quot;utf-8&quot;&gt;     &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;     &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;     &lt;title&gt;{% block title %}Erlang blog example{% endblock %}&lt;\/title&gt;      &lt;!-- Bootstrap --&gt;     &lt;link href=&quot;https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.5\/css\/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt;      &lt;!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --&gt;     &lt;!-- WARNING: Respond.js doesn't work if you view the page via file:\/\/ --&gt;     &lt;!--[if lt IE 9]&gt;       &lt;script src=&quot;\/\/oss.maxcdn.com\/html5shiv\/3.7.2\/html5shiv.min.js&quot;&gt;&lt;\/script&gt;       &lt;script src=&quot;\/\/oss.maxcdn.com\/respond\/1.4.2\/respond.min.js&quot;&gt;&lt;\/script&gt;     &lt;![endif]--&gt;     &lt;style&gt;       .container {           max-width: 40em;       }     &lt;\/style&gt;   &lt;\/head&gt;   &lt;body&gt;       &lt;div class=&quot;container&quot;&gt;         {% block content %}{% endblock %}       &lt;\/div&gt;      &lt;script src=&quot;\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.3\/jquery.min.js&quot;&gt;&lt;\/script&gt;     &lt;script src=&quot;https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.5\/js\/bootstrap.min.js&quot;&gt;&lt;\/script&gt;   &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>apps\/sample\/priv\/templates\/index.html<\/b>  <\/p>\n<pre><code class=\"html\">{% extends &quot;base.html&quot; %} {% block title %}Latest posts{% endblock %} {% block content %} &lt;h1&gt;Latest posts&lt;\/h1&gt; {{ posts }} {% endblock %} <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u043e\u0435\u043c index.erl \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u043c \u043a\u043e\u0434 \u043d\u0430 \u0442\u0430\u043a\u043e\u0439:  <\/p>\n<pre><code class=\"erlang\">-module(index). -compile(export_all). -include_lib(&quot;n2o\/include\/wf.hrl&quot;). -include_lib(&quot;nitro\/include\/nitro.hrl&quot;).  main() -&gt; #dtl{file=&quot;index&quot;}. <\/code><\/pre>\n<p>  \u0412 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 \u0444\u0430\u0439\u043b\u0430 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043c\u044b \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0432\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <b>main\/1<\/b> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0438\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 HTML, \u0438\u043b\u0438 DSL \u042d\u0440\u043b\u0430\u043d\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u043e\u0437\u0436\u0435. \u041f\u043e\u043a\u0430 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d index. <i>\u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043a \u042d\u0440\u043b\u0430\u043d\u0433\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u043a\u0430\u043a <b>\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\/\u043a\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u044c<\/b>, \u0433\u0434\u0435 \u043a\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u044c \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432<\/i>.<\/p>\n<h2>\u0417\u043d\u0430\u043a\u043e\u043c\u0438\u043c\u0441\u044f \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c<\/h2>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043c\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0430, \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 <a href=\"http:\/\/www.tryerlang.org\/\">www.tryerlang.org<\/a>. \u041c\u044b \u0432\u044b\u0432\u0435\u0434\u0435\u043c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u0441\u0435 \u043f\u043e\u0441\u0442\u044b. \u041f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0411\u0414, \u0430 \u0431\u0443\u0434\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u0442\u044b \u043f\u0440\u044f\u043c\u043e \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<p>  \u0412 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u0447\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \/apps\/sample\/include\/records.hrl \u043e\u043f\u0438\u0448\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u043e\u0432:  <\/p>\n<pre><code class=\"erlang\">-record(post, {id, title, text, author}). <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u044c \/apps\/sample\/src\/posts.erl \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u043e\u0432. \u041c\u043e\u0434\u0443\u043b\u044c \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: <b>get\/0<\/b> \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u0441\u0435 \u043f\u043e\u0441\u0442\u044b, \u0430 <b>get\/1<\/b> \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u043e\u0441\u0442 \u043f\u043e Id:  <\/p>\n<pre><code class=\"erlang\">-module(posts). -export([get\/0, get\/1]). -include(&quot;records.hrl&quot;).  get() -&gt; [     #post{id=1, title=&quot;first post&quot;, text=&quot;interesting text&quot;},     #post{id=2, title=&quot;second post&quot;, text=&quot;not interesting text&quot;},     #post{id=3, title=&quot;third post&quot;, text=&quot;very interesting text&quot;} ].  get(Id) -&gt; lists:keyfind(Id, #post.id, ?MODULE:get()). <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0438\u0441\u0438 \u0432 \u042d\u0440\u043b\u0430\u043d\u0433\u0435 \u2014 \u044d\u0442\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0445\u0430\u0440, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0437\u0430\u043c\u0435\u043d\u0438\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430 \u043a\u043e\u0440\u0442\u0435\u0436\u0438, \u0430 \u043f\u043e\u043b\u044f \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 #post.id \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u0435\u043d \u043d\u0430 0.<\/p>\n<h2>DSL<\/h2>\n<p>  \u0412\u044b\u0448\u0435 \u044f \u043f\u0438\u0441\u0430\u043b, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u042d\u0440\u043b\u0430\u043d\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442\u0441\u044f \u0432 HTML. \u0418\u0437\u043c\u0435\u043d\u0438\u043c \u043d\u0430\u0448 index.erl, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043b\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u0432\u0441\u0435\u0445 \u043f\u043e\u0441\u0442\u043e\u0432:  <\/p>\n<pre><code class=\"erlang\">-module(index). -compile(export_all). -include_lib(&quot;n2o\/include\/wf.hrl&quot;). -include_lib(&quot;nitro\/include\/nitro.hrl&quot;). -include_lib(&quot;records.hrl&quot;).  posts() -&gt; [     #panel{body=[         #h2{body = #link{body = P#post.title, url = &quot;\/post?id=&quot; ++ wf:to_list(P#post.id)}},         #p{body = P#post.text}       ]} || P &lt;- posts:get()].  main() -&gt; #dtl{file=&quot;index&quot;, bindings=[{posts, posts()}]}. <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u0441\u0442\u0430, \u043c\u044b \u0432 \/apps\/sample\/src\/routes.erl \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a\u043e\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0448 \u043f\u0443\u0442\u044c:  <\/p>\n<pre><code class=\"erlang\">route(&lt;&lt;&quot;post&quot;&gt;&gt;)        -&gt; post; <\/code><\/pre>\n<p>  \u041c\u043e\u0434\u0443\u043b\u044c apps\/sample\/src\/post.erl \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e\u0441\u0442\u0430:<br \/>  \u043c\u043e\u0434\u0443\u043b\u044c  <\/p>\n<pre><code class=\"erlang\">-module(post). -compile(export_all). -include_lib(&quot;n2o\/include\/wf.hrl&quot;). -include_lib(&quot;records.hrl&quot;).  main() -&gt;     {Id, _} = string:to_integer(binary_to_list(wf:q(&lt;&lt;&quot;id&quot;&gt;&gt;))),     Post = posts:get(Id),     #dtl{file=&quot;post&quot;, bindings=[{title, Post#post.title}, {text, Post#post.text}]}. <\/code><\/pre>\n<p>  \u0428\u0430\u0431\u043b\u043e\u043d:  <\/p>\n<pre><code class=\"html\">{% extends &quot;base.html&quot; %} {% block title %}{{ title }}{% endblock %} {% block content %} &lt;h1&gt;{{ title }}&lt;br \/&gt; &lt;small&gt;by {{ author }}&lt;\/small&gt; &lt;p&gt;{{ text }}&lt;\/p&gt; &lt;h3&gt;Comments&lt;\/h3&gt; {{ comments }} {% endblock %} <\/code><\/pre>\n<h2>\u0412\u0435\u0431\u0441\u043e\u043a\u0435\u0442\u044b<\/h2>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u043e\u0434\u043e\u0448\u043b\u0438 \u043a \u0441\u0430\u043c\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u043c\u0443, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0432\u044f\u0437\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043f\u043e \u0432\u0435\u0431\u0441\u043e\u043a\u0435\u0442\u0443. \u041c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043f\u043e\u0441\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 n2o:  <\/p>\n<pre><code class=\"html\">    &lt;script&gt;{{script}}&lt;\/script&gt;     &lt;script src='\/n2o\/protocols\/bert.js'&gt;&lt;\/script&gt;     &lt;script src='\/n2o\/protocols\/client.js'&gt;&lt;\/script&gt;     &lt;script src='\/n2o\/protocols\/nitrogen.js'&gt;&lt;\/script&gt;     &lt;script src='\/n2o\/validation.js'&gt;&lt;\/script&gt;     &lt;script src='\/n2o\/bullet.js'&gt;&lt;\/script&gt;     &lt;script src='\/n2o\/utf8.js'&gt;&lt;\/script&gt;     &lt;script src='\/n2o\/template.js'&gt;&lt;\/script&gt;     &lt;script src='\/n2o\/n2o.js'&gt;&lt;\/script&gt;     &lt;script&gt;protos = [ $bert, $client ]; N2O_start();&lt;\/script&gt; <\/code><\/pre>\n<p>  \u0410 \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 post.erl \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0438 \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432:  <\/p>\n<pre><code class=\"erlang\">main() -&gt;     Id = wf:to_integer(wf:q(&lt;&lt;&quot;id&quot;&gt;&gt;)),     Post = posts:get(Id),     #dtl{file=&quot;post&quot;, bindings=[{title, Post#post.title}, {text, Post#post.text}, {comments, comments()}]}.  comments() -&gt;     [#textarea{id=comment, class=[&quot;form-control&quot;], rows=3},       #button{id=send, class=[&quot;btn&quot;, &quot;btn-default&quot;], body=&quot;Post comment&quot;,postback=comment,source=[comment]} ].  event(comment) -&gt;     wf:insert_bottom(comments, #blockquote{body = #p{body = wf:html_encode(wf:q(comment))}}). <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u043a\u0430\u043a\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d\u043e (postback) \u0438 \u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 (source). \u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 event(comment) \u043c\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043a\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0432\u043d\u0438\u0437\u0443 \u0441\u043f\u0438\u0441\u043a\u0430. \u041f\u043e\u043a\u0430 \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043a \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c, \u043d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043c:  <\/p>\n<pre><code class=\"erlang\">event(init) -&gt;     wf:reg({post, post_id()});  event(comment) -&gt;     wf:send({post, post_id()}, {client, wf:q(comment)});  event({client, Text}) -&gt;     wf:insert_bottom(comments, #blockquote{body = #p{body = wf:html_encode(Text)}}). <\/code><\/pre>\n<p>  \u0421\u043e\u0431\u044b\u0442\u0438\u0435 init, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0438 \u043c\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0446\u0435\u0441\u0441, \u0447\u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u0443\u043b\u0430 {post, post_id()}.<\/p>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0438 event(comment), \u043c\u044b \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u043d\u043e\u0432\u044b\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u0432 \u043f\u0443\u043b. \u0410 \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u0434\u0435\u043b\u0430\u0435\u043c \u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0435 event({client, Text}). \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u0435\u0441\u0435\u043b\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0447\u0430\u0442\u0435 \u043f\u043e\u0434 \u043f\u043e\u0441\u0442\u043e\u043c, \u0438 \u043f\u043e\u0447\u0442\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b\u0438 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b mad \u043a\u0430\u043a \u043a\u043e\u0441\u0442\u044f\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u043e\u0441\u0442\u044b \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0432 \u0411\u0414, \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u0444\u0435\u0439\u0441\u0431\u0443\u043a.               <\/p>\n<div class=\"clear\"><\/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\/273979\/\"> http:\/\/habrahabr.ru\/post\/273979\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ab9\/08a\/eb3\/ab908aeb3c9c4422ab0de8abe4b4a361.png\" align=\"right\"\/><br \/>  \u042f \u043d\u0430\u0447\u0438\u043d\u0430\u044e \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043e \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043d\u0430 \u042d\u0440\u043b\u0430\u043d\u0433\u0435. \u041c\u043d\u043e\u0433\u0438\u0435 \u0445\u043e\u0442\u044f\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u042d\u0440\u043b\u0430\u043d\u0433, \u043d\u043e \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0447\u0442\u043e \u0432\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0443\u0440\u0441\u044b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u0430\u0441\u0430\u044e\u0442\u0441\u044f \u042d\u0440\u043b\u0430\u043d\u0433\u0430 \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u0438 \u0434\u0430\u043b\u0435\u043a\u0438 \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 (<a href=\"http:\/\/learnyousomeerlang.com\/\">Learn You Some Erlang for great good!<\/a> \u2014 \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u043a\u043d\u0438\u0433\u0430). \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u0441\u0435 \u043e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e\u0442, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0443\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u043d\u0430\u0435\u0442 \u042d\u0440\u043b\u0430\u043d\u0433.<\/p>\n<p>  \u042d\u0442\u0430 \u0441\u0435\u0440\u0438\u044f \u0441\u0442\u0430\u0442\u0435\u0439 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u043e\u043f\u044b\u0442 \u0432 \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 (PHP, Ruby, Java), \u043d\u043e \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043e\u043f\u044b\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 \u042d\u0440\u043b\u0430\u043d\u0433\u0435. <\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043b\u043e\u0433. \u041a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u0435\u0439 <a href=\"https:\/\/github.com\/denys-potapov\/n2o-blog-example\">https:\/\/github.com\/denys-potapov\/n2o-blog-example<\/a>, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/46.101.118.21:8001\/\">http:\/\/46.101.118.21:8001\/<\/a>. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430:  <\/p>\n<ul>\n<li>\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438;<\/li>\n<li>\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0444\u0435\u0439\u0441\u0431\u0443\u043a;<\/li>\n<li>\u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u043c \u0432 mnesia.<\/li>\n<\/ul>\n<p>  \u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/synrc\/n2o\">\u0444\u0435\u0439\u043c\u0432\u043e\u0440\u043a n2o<\/a>. \u0412\u044b\u0431\u043e\u0440 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u0435\u043d, \u043d\u043e \u0438\u0437 \u0436\u0438\u0432\u044b\u0445 <a href=\"https:\/\/github.com\/ChicagoBoss\/ChicagoBoss\/wiki\/comparison-of-erlang-web-frameworks\">\u042d\u0440\u043b\u0430\u043d\u0433 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432<\/a>, n2o \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u00ab\u044d\u0440\u043b\u0430\u043d\u0433\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c\u00bb, \u0432 \u0442\u043e\u0436\u0435 \u0432\u0440\u0435\u043c\u044f ChicagoBoss \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 MVC \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445.  <\/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-271101","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271101","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=271101"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/271101\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}