{"id":157383,"date":"2012-11-06T13:09:06","date_gmt":"2012-11-06T09:09:06","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=157383"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=157383","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0433\u043e\u0432, \u0438\u043b\u0438 \u043a\u0430\u043a \u044f \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 HTML \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/12b\/d10\/759\/12bd1075939736f93a8e733da79d86fe.png\" align=\"right\"\/>\u0423\u0436\u0435 \u043a\u0430\u043a\u043e\u0435 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\/\u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"http:\/\/habrahabr.ru\/post\/149509\/\">MaskJS<\/a>. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0435\u0451 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u0430 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043e\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0430 HTML. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0434\u0430\u043d\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e-\u043f\u0443\u043d\u043a\u0442\u0430\u043c, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a:  <\/p>\n<ul>\n<li>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c<\/li>\n<li>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u0433\u043e\u0432<\/li>\n<li>\u041f\u0440\u0435- \u0438 \u041f\u043e\u0441\u0442-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b<\/li>\n<li>IoC<\/li>\n<li>\u0418\u0437\u043e\u043b\u044f\u0446\u0438\u044f\/\u0414\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f<\/li>\n<li>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u2014 \u041c\u043e\u0434\u0435\u043b\u044c \u2014 \u041a\u043e\u0434 \u2014 \u0421\u0442\u0438\u043b\u0438<\/li>\n<\/ul>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e \u0441\u0430\u043c\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u2014 <a href=\"http:\/\/libjs.it\/#\/mask\">libjs\/Mask<\/a>, a \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0442\u0443\u0442 \u2014 <a href=\"http:\/\/github.com\/tenbits\/MaskJS\">github\/Mask<\/a><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u00a7 \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c<\/h4>\n<p>  <\/p>\n<ol>\n<li>\n<h5>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h5>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043e \u043d\u0435\u0439, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0435\u0440\u0432\u044b\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c, \u043f\u043e\u0441\u043b\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432, \u044f \u0441\u043b\u044b\u0448\u0443 \u2014 \u00ab\u041d\u0443 \u0445\u043e\u0440\u043e\u0448\u043e, \u044d\u0442\u043e \u0443 \u0442\u0435\u0431\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439 DOM Builder \u0438 \u0432\u0441\u0435 \u044d\u0442\u043e \u0432\u043a\u0443\u0441\u043d\u043e, \u043d\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0440\u0430\u0434\u0430\u0435\u0442?!\u00bb. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043f\u0435\u0448\u0443 \u0432\u0430\u0441 \u0443\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u0430\u0436\u0435 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u0432\u044b \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435. \u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u0437\u0430 \u043f\u043e\u043f\u0441\u043e\u0432\u043e\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u044f \u0438 \u043e\u0448\u0438\u0431\u0430\u044e\u0441\u044c, \u043d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0443\u0433\u043b\u0443\u0431\u0438\u043c\u0441\u044f. <br \/>  \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0442\u0435\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b \u0443\u0436\u0435 \u0440\u0430\u043d\u0435\u0435, <a href=\"http:\/\/jsperf.com\/javascript-template-engine-compare\/2\">jsperf<\/a>.<br \/>  \u0417\u0430\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f, \u043a\u0430\u043a \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0430\u0436\u043d\u044b Webkits JavaScriptCore \u0438 V8. \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0442\u0435\u0441\u0442\u043e\u0432 \u2014 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445. <br \/>  <font color=\"#999\">Mustache \u0437\u0434\u0435\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d.<\/font><\/p>\n<h6>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f\/\u041f\u0430\u0440\u0441\u0438\u043d\u0433 \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u044b\u0438\u0433\u0440\u044b\u0448<\/h6>\n<p>  \u0418\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u043c\u044b \u0441\u0442\u0440\u043e\u0438\u043c JSON \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u0438\u0434\u0430 <code>{tagName:'div',attr:{...},nodes:[...]}<\/code>. \u041c\u043e\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0434\u0435\u0435\u0439 \u0431\u044b\u043b\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u2014 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e <code> var template = JSON.parse(serializedJsonDom)<\/code>, \u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u0440\u043e\u0432\u0435\u043b \u0442\u0435\u0441\u0442\u044b, o\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e mask.compile \u0432 \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u0434\u0432\u0438\u0436\u043a\u0430\u0445 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 JSON.parse \u2014 <a href=\"http:\/\/jsperf.com\/maskjs-vs-json\">jsperf<\/a>, \u0430 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c\u0443. \u0422\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043e\u0442\u043f\u0430\u0434\u0430\u0435\u0442 \u0443\u0436\u0435 \u0438\u0437-\u0437\u0430 \u043d\u0435\u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438. <\/p>\n<h6>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 DOM. \u0412\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u0438\u0433\u0440\u044b\u0448<\/h6>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0432 JSON \u0434\u0435\u0440\u0435\u0432\u043e, \u043c\u044b \u0441\u0442\u0440\u043e\u0438\u043c <i>DocumentFragment<\/i>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043c \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u00ab\u0436\u0438\u0432\u043e\u0439\u00bb DOM. \u0418\u0437 <a href=\"http:\/\/jsperf.com\/maskjs-vs-innerhtml-vs-documentfragment\">\u0442\u0435\u0441\u0442\u0430<\/a> \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0438 \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435. \u042f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0447\u0438\u0441\u0442\u044b\u0439 <code>.appendChild(documentFragment)<\/code>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u044f \u0441\u043e\u043b\u044c \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 <i>DocumentFragment<\/i>. \u0418 \u0447\u0442\u043e \u043e\u043f\u044f\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, <i>.innerHTML<\/i> \u0437\u0434\u0435\u0441\u044c \u0442\u043e\u0436\u0435 \u0443\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (Chrome).<\/p>\n<p>  \u0412\u0430\u0436\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u043c \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043c\u044b \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043c \u0432\u0441\u0435 \u0432 \u043e\u0434\u0438\u043d \u0437\u0430\u0445\u043e\u0434. \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 jQuery \u0432\u0438\u0434\u0436\u0435\u0442\u0430\u043c\u0438. \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:  <\/p>\n<ul>\n<li>\u0432 \u043c\u0430\u043a\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 <code>&lt;div id='myWidget'&gt;&lt;\/div&gt;<\/code> <\/li>\n<li>\u0432 javascript-e <code>$('#myWidget').myWidgetInit(config);<\/code><\/li>\n<\/ul>\n<p>  \u041e\u0433\u0440\u043e\u043c\u043d\u044b\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0438\u0434\u0436\u0435\u0442 \u0432 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 DOM \u044d\u043b\u0435\u043c\u0435\u043d\u0442. \u0410 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u00ab\u0436\u0438\u0432\u043e\u0439\u00bb DOM \u0432\u0435\u0449\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0440\u043e\u0433\u0430\u044f. \u0418 \u043f\u0440\u0438 \u0442\u043e\u043c \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0443 \u043d\u0430\u0441 \u043d\u0435 \u043e\u0434\u0438\u043d \u0432\u0438\u0434\u0436\u0435\u0442 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. <\/p>\n<p>  \u0412\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u0438\u0442\u043e\u0433\u0435 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0439 DOM Builder.<\/p>\n<\/li>\n<li>\n<h5>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/h5>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u044d\u0442\u043e \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u0430\u0445, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0440\u0430\u0434\u0438 \u044d\u0442\u043e\u0433\u043e \u0438 \u0437\u0430\u0442\u0435\u0432\u0430\u043b\u0430\u0441\u044c \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f. \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0433\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0432\u044b\u0448\u0430\u044e\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u043a\u0435\u0442:  <\/p>\n<pre><code class=\"javascript\">header &gt; menuBar {     li target='item1' &gt; 'Item1 Title'     li target='item2' &gt; 'Item2 Title' } viewsManager {     view#item1 &gt; carousel {         img src='img1.png';         img src='img2.png';     }     view#item2 &gt; scroller {         'About Content'     }  } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b <code>menuBar, viewsManager, scroller, carousel \u0438 slider<\/code> \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b, \u0442\u043e \u043d\u0430\u043c \u0434\u0430\u0436\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0432 javascript-e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e, \u0447\u0442\u043e \u0431\u044b \u043c\u0435\u043d\u044e \u0438 <i>\u0432\u044c\u044e\u0448\u043a\u0438<\/i> \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b <i>\u0441\u043a\u0440\u043e\u043b\u043b<\/i>, \u0447\u0442\u043e \u0431\u044b \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043a\u0440\u0443\u0442\u0438\u043b\u0438\u0441\u044c. \u0420\u0430\u0437\u0432\u0435 \u043d\u0435 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c? \u0418 \u0440\u0430\u0437\u0432\u0435 \u043d\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u0430\u043a\u0435\u0442? \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0443\u043c\u0435\u044e\u0442 \u0442\u0430\u043a\u0436\u0435 \u0441\u0430\u043co-\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u043e \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0447\u0435\u0440\u0435\u0437 Dom Ready Event \u0438 \u043f\u043e\u0438\u0441\u043a\/\u0437\u0430\u043c\u0435\u043d\u0443 \u043d\u0443\u0436\u043d\u044b\u0445 \u0442\u0435\u0433\u043e\u0432 \u2014 \u0432\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 <i>\u00aboverhead\u00bb<\/i>. \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 DOM Builder. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043c\u0430\u043a\u0435\u0442 \u0432 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. <\/p>\n<\/li>\n<\/ol>\n<h4>\u00a7 \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0442\u044d\u0433\u043e\u0432<\/h4>\n<p>  \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043d\u0430\u0448\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. Builder \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0432 \u0442\u0435\u0433 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430, \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430, \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0441\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 \u0432 \u044d\u0442\u043e\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u2014 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u0430\u0433\u0438\u0438. \u0415\u0441\u043b\u0438 \u0436\u0435 \u043d\u0438\u043a\u0442\u043e \u043f\u043e\u0434 \u0442\u0435\u0433\u043e\u043c \u043d\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u2014 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0430\u043c. \u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u00ab\u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439 \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e\u00bb \u043a\u043b\u0430\u0441\u0441 Compo (<a href=\"http:\/\/github.com\/tenbits\/CompoJS\">\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a>, <a href=\"http:\/\/libjs.it\/#\/compo\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<h4>\u00a7 \u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b<\/h4>\n<p>  \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u044b\u0439 <i>render flow<\/i>, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0438 \u043c\u0430\u043a\u0435\u0442 \u0432 \u0446\u0435\u043b\u043e\u043c. \u041f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u043c\u0438 \u044f \u043d\u0430\u0437\u044b\u0432\u0430\u044e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 \u043d\u0438\u0436\u043d\u0438\u0439 \u043c\u0430\u043a\u0435\u0442. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043a\u0430\u043a \u0431\u044b \u0432\u043d\u0435\u0434\u0440\u044f\u0435\u043c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u043c \u0432 \u043c\u0430\u043a\u0435\u0442 \u2014 \u043f\u0440\u0430\u0432\u0438\u043c \u043f\u043e \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044e \u043d\u0438\u0436\u043d\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u043b\u0438 \u043f\u043e\u0434\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0430\u043a\u0435\u0442\u043e\u0432 (layouts). \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 <i>MasterPages (asp.net \u043f\u0440\u0438\u0432\u0435\u0442)<\/i>:  <\/p>\n<pre><code class=\"javascript\">layout:master#twoColumnLayout  {     div.wrap {         div.layoutLeft &gt; placeholder#left;         div.layoutLeft &gt; placeholder#right;     } } layout:view master='twoColumnLayout' {     left { \/** content *\/ }     right { \/** content *\/  } } <\/code><\/pre>\n<p>  <font color=\"555\">\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 #twoColumnLayout \u0434\u043e\u043b\u0436\u0435\u043d \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0442\u0438\u043b\u0438, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437. <\/font><br \/>  \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e. \u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 <a href=\"https:\/\/github.com\/tenbits\/Compos\/blob\/master\/layout\/lib\/layout.js\">layout.js<\/a><\/p>\n<h4>\u00a7 \u041f\u043e\u0441\u0442\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b<\/h4>\n<p>  \u0418\u0445 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c \u0443\u0436\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u0438 \u043d\u0435 \u0448\u0430\u0431\u043b\u043e\u043d, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0443\u0436\u0435 <i>\u043f\u0440\u043e\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d<\/i>, \u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e <code>HTMLElement<\/code> (\u043c\u044b \u043f\u043e\u043c\u043d\u0438\u043c, \u0447\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 DocumentFragment, \u0442\u0430\u043a \u0447\u0442\u043e \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b). \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u0449\u043d\u044b\u043c \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u043e\u043c \u043f\u0440\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. \u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u043e\u0432:  <\/p>\n<pre><code class=\"javascript\">div {     bind value='name';     bind value='status' attr='class'; } <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043f\u043e\u0441\u0442\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0441\u0432\u044f\u0436\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c <code>div<\/code>.   <\/p>\n<pre><code class=\"javascript\">var person =  { name: &quot;Alex&quot;, status: &quot;happy&quot; } container.appendChild(mask.renderDom(template, person)); setTimeout(function(){ person.status = 'busy' ; person.name=&quot;Anonym&quot; }, 1000); <\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u0434\u0443\u043c\u0430\u044e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439. \u0410 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u2014 <a href=\"https:\/\/github.com\/tenbits\/Compos\/blob\/master\/binding\/lib\/binding.js#L20\">github<\/a><\/p>\n<h4>\u00a7 Inversion of Control (Dependency Injection)<\/h4>\n<p>  \u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u0437\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u0430 \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u00ab\u0443\u0436 \u0431\u043e\u043b\u044c\u043d\u043e \u0441\u0438\u043b\u044c\u043d\u043e\u00bb \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f. \u042d\u0445 \u0437\u0432\u0443\u0447\u0438\u0442 \u0442\u043e \u043a\u0430\u043a\u2026 \u041d\u0435 \u0442\u0430\u043a \u043c\u043d\u0435 \u0441\u0430\u043c \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u043a\u0430\u043a \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u2014 \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0449\u044c. \u041f\u0440\u043e\u0441\u0442\u0438\u0442\u0435 \u0437\u0430 \u043b\u0438\u0440\u0438\u043a\u0443, \u043d\u0435 \u0443\u0434\u0435\u0440\u0436\u0430\u043b\u0441\u044f. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u043d\u0430\u0448\u0435\u0439 \u0442\u0435\u043c\u0435, \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0433\u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u044e\u0442 \u043d\u0430\u043c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u044b \u043d\u043e\u0432\u044b\u0445 \u0438\u043b\u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0431\u044b\u0442\u044b\u0445 \u0441\u0442\u0430\u0440\u044b\u0445 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u0432. <br \/>  \u0412 \u043f\u043b\u0430\u043d\u0430\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0444\u0430\u0431\u0440\u0438\u043a\u0443 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432:  <\/p>\n<pre><code class=\"javascript\">form {     propertyEditor value='name';     propertyEditor value='birthday';     propertyEditor value='age'; } <\/code><\/pre>\n<p>  \u0410 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"javascript\">mask.registerHandler('propertyEditor', Class({     render: function(values, container, cntx){         var value = Object.getProperty(values, this.attr.value),               template;         switch(Object.typeOf(value)){             case 'string':                  template = Object.format('input type=&quot;text&quot; value=&quot;#{%1}&quot; &gt; bind value=&quot;#{%1}&quot; prop=&quot;value&quot;;',this.attr.value);                 break;            case 'datetime':                 template = Object.format('datePicker date=&quot;%1&quot;;', value.toString());                 break;            \/** \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 *\/         }         mask.renderDom(template, values, container, cntx);           }); }} <\/code><\/pre>\n<p>  \u0412\u0430\u0436\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u043c \u0437\u0434\u0435\u0441\u044c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u0441\u044f \u0432 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432 \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u0442\u0435\u0433\u043e\u0432, \u0434\u0430\u0436\u0435 \u0442\u043e\u0442 \u0436\u0435 \u00abDIV\u00bb \u2014 \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u043c \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u044b \u0434\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u0447\u0442\u043e \u043d\u0430 \u0443\u043c \u043f\u0440\u0438\u0434\u0435\u0442.<\/p>\n<h4>\u00a7 \u0418\u0437\u043e\u043b\u044f\u0446\u0438\u044f<\/h4>\n<p>  \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0433\u0438, \u0438\u043b\u0438 \u0432\u0435\u0440\u043d\u0435\u0435 \u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043f\u043e\u0434\u0434\u0430\u044e\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0435\u0439 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438. \u041a\u0430\u043a \u044d\u0442\u043e \u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u0440\u0438 \u0431\u043b\u043e\u0447\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u043b\u044e\u0431\u043e\u0439 \u0431\u043b\u043e\u043a \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 (\u0434\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f), \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d, \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043e\u0431\u0440\u0430\u0442\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u044b\u0448\u0435 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u00ab\u043a\u0430\u0440\u0443\u0441\u0435\u043b\u044c\u00bb \u2014 \u043c\u044b \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0432\u043e\u0438\u0445 \u0434\u0435\u0442\u0435\u0439 (\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438), \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0435\u0433\u043e. \u041d\u0430\u0448 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043c\u0435\u0442\u044c \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 \u0441\u0442\u0438\u043b\u0438. \u041e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0435 \u044f \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b, \u0438 \u043f\u043e\u0442\u043e\u043c \u0445\u043e\u0447\u0443 \u0435\u0449\u0435 \u043f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0438\u0434\u0435\u0439. \u041d\u043e \u044d\u0442\u043e \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<br \/>  \u0418\u0437\u043e\u043b\u044f\u0446\u0438\u044f \u0432\u0430\u0436\u043d\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043d\u043e \u0438 \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u0431\u044b\u0442\u0438\u0439\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c. <\/p>\n<h4>\u00a7 \u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u2014 \u041c\u043e\u0434\u0435\u043b\u044c \u2014 \u041a\u043e\u0434 \u2014 \u0421\u0442\u0438\u043b\u0438<\/h4>\n<p>  \u042f \u043e\u0447\u0435\u043d\u044c \u043b\u044e\u0431\u043b\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u044d\u0431 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u2014 \u043a\u043e\u0434 \u2014 \u0441\u0442\u0438\u043b\u0438), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0435 \u0432 MaskJS \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443 \u0438\u0437 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u0435 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u2014 \u0446\u0438\u043a\u043b\u044b, \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u0435\u0435 \u0438\u043c\u0435\u0442\u044c \u0442\u0430\u043aoe (\u043a\u043e\u0434\u0430 \u043d\u0435\u0442, \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u043a\u0435\u0442):  <\/p>\n<pre><code class=\"javascript\">ul &gt; list value='users' &gt; li &gt; '#{name}' <\/code><\/pre>\n<p>  \u0422\u0435\u0433(\u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442) <code>list;<\/code> \u0432\u043e\u0437\u044c\u043c\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 <code>&quot;users&quot;<\/code> \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u0443\u044e \u0432 \u0448\u0430\u0431\u043b\u043e\u043d, \u0438 \u043f\u0440\u043e\u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442 \u0441\u0432\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d <code>li &gt; &quot;#{name}&quot;<\/code> N(users.length) \u0440\u0430\u0437. \u0412\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c, \u0438\u043b\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0441\u044f \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u0430\u043a\u0435\u0442 \u2014 \u043c\u0430\u043a\u0435\u0442\u043e\u043c, \u043a\u043e\u0434 \u2014 \u043a\u043e\u0434\u043e\u043c, \u0430 \u0441\u0442\u0438\u043b\u0438 \u2014 \u0441\u0442\u0438\u043b\u044f\u043c\u0438. \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u043b\u0435\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u043e-\u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0443. \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u2014 \u044d\u0442\u043e \u0432\u0441\u0435 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e, \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u044f \u0432 \u043a\u043e\u0440\u043d\u0435 \u043d\u0435 \u043f\u0440\u0430\u0432, \u0430 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u0432\u0441\u0435 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435.<\/p>\n<h4>\u00a7 \u0423\u0445\u043e\u0434 \u043e\u0442 HTML<\/h4>\n<p>  \u0412 \u0441\u0438\u043b\u0443 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0448\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e, \u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e HTML. \u0412 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0438\u043c\u0435\u0435\u043c \u0442\u0435\u0433 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0442\u0438\u043f\u043e\u043c \u00abmask\/template\u00bb \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043c \u0432 DOM. \u041c\u043d\u043e\u0433\u0438\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u0430\u043a \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440 \u2014 <a href=\"https:\/\/github.com\/tenbits\/Compos\/blob\/master\/timePicker\/lib\/timePicker.js\">TimePicker<\/a><\/p>\n<p>  \u041f\u0440\u043e\u0448\u0443 \u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u043a\u043e\u0433\u043e-\u0442\u043e \u043e\u0431\u0438\u0434\u0435\u043b \u0438\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u043e\u0448\u0438\u0431\u0441\u044f. \u0425\u043e\u0442\u044f \u0432 Chrome \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043e\u0440\u0444\u043e\u0433\u0440\u0430\u0444\u0438\u044e, \u0442\u0430\u043a \u0441 \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u0435\u0439 \u043e\u043d \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442, \u0430 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u00ab\u043e\u0439 \u043a\u0430\u043a \u043d\u0430\u0434\u043e\u00bb.<\/p>\n<p>  \u0423\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u0434\u043d\u044f!    \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\/157383\/\"> http:\/\/habrahabr.ru\/post\/157383\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/12b\/d10\/759\/12bd1075939736f93a8e733da79d86fe.png\" align=\"right\"\/>\u0423\u0436\u0435 \u043a\u0430\u043a\u043e\u0435 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\/\u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"http:\/\/habrahabr.ru\/post\/149509\/\">MaskJS<\/a>. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0435\u0451 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0434\u0432\u0438\u0436\u043e\u043a \u0434\u043b\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u0430 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043e\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0430 HTML. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0434\u0430\u043d\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e-\u043f\u0443\u043d\u043a\u0442\u0430\u043c, \u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a:  <\/p>\n<ul>\n<li>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c<\/li>\n<li>\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0442\u0435\u0433\u043e\u0432<\/li>\n<li>\u041f\u0440\u0435- \u0438 \u041f\u043e\u0441\u0442-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b<\/li>\n<li>IoC<\/li>\n<li>\u0418\u0437\u043e\u043b\u044f\u0446\u0438\u044f\/\u0414\u0435\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f<\/li>\n<li>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u2014 \u041c\u043e\u0434\u0435\u043b\u044c \u2014 \u041a\u043e\u0434 \u2014 \u0421\u0442\u0438\u043b\u0438<\/li>\n<\/ul>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e \u0441\u0430\u043c\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u2014 <a href=\"http:\/\/libjs.it\/#\/mask\">libjs\/Mask<\/a>, a \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0442\u0443\u0442 \u2014 <a href=\"http:\/\/github.com\/tenbits\/MaskJS\">github\/Mask<\/a>  <\/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-157383","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157383","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=157383"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/157383\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}