{"id":179359,"date":"2013-05-16T14:41:03","date_gmt":"2013-05-16T10:41:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=179359"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=179359","title":{"rendered":"<span class=\"post_title\">MaskJS \u2014 \u043a\u0430\u043a HMV* \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/690\/9b5\/d62\/6909b5d6218992d251e1aa7dd7677997.png\"\/><br \/>  \u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044f MaskJS \u0432\u043e\u0442 \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u0443\u0433\u043e\u0434\u0430, \u043e\u043d \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0438\u0437 DOM \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0432 \u043e\u0447\u0435\u043d\u044c \u043c\u043e\u0449\u043d\u044b\u0439, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u0431 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u044e \u0432\u0430\u0441 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u0430\u043c\u0438 \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0423\u0432\u0435\u0440\u0435\u043d, \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0438 \u0441\u043b\u043e\u0442\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e DOM \u0441\u043e\u0431\u044b\u0442\u0438\u0439. \u0418 \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u0435\u043b\u0430\u044e\u0442 \u043d\u0430\u0448\u0443 \u0436\u0438\u0437\u043d\u044c \u043f\u0440\u043e\u0449\u0435. \u041c\u0430\u0441\u043a\u0430 \u043b\u0435\u0433\u043a\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0438 \u0434\u0430\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0436\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435\u043c \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <i><code>render flow<\/code><\/i>, \u0433\u0434\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f Document Fragment \/ \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \/ \u00ab\u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438\u00bb. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c, \u043d\u043e \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e, \u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  <a href=\"http:\/\/github.com\/tenbits\/MaskJS\"> MaskJS@GitHub <\/a> <br \/>  \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 todo <a href=\"http:\/\/libjs.it\/mask-try\/#preset:TODO\"> \u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u0434\u043b\u044f \u0440\u0430\u0437\u043e\u0433\u0440\u0435\u0432\u0430. <i>mask-fiddle \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 webkit-\u0435<\/i><\/p>\n<h2>View<\/h2>\n<h4>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430<\/h4>\n<p>  \u041d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442, \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0441\u0445\u043e\u0436\u0438\u0439 \u0441 css\/less\/sass. \u0417\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0431\u0430\u0433\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430 \u0434\u0432\u0438\u0436\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439.<\/p>\n<pre><code class=\"javascript\">p {     div#info.dark &gt; 'Single Child'     button data-user='123' style='cursor:pointer;' &gt;  span &gt; 'Submit'     input type=hidden value=x; } <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u043c\u044b \u0443\u0431\u0440\u0430\u043b\u0438 &quot;&lt;&gt;&quot; \u0438\u0437 \u0442\u044d\u0433\u043e\u0432 \u0438 \u0443\u0431\u0440\u0430\u043b\u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0442\u044d\u0433\u0438, \u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0438 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u043c\u0438 &quot;{}&quot; \u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438. <i>(\u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0431\u043b\u043e\u043a \u0441 \u043e\u0434\u043d\u0438\u043c \u0440\u0435\u0431\u0451\u043d\u043a\u043e\u043c \u043f\u043e\u0445\u043e\u0436 \u043d\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0441 &quot;&gt;&quot; \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u043c, \u0430 \u0432\u043e\u0432\u0441\u0435 \u0431\u0435\u0437 \u0434\u0435\u0442\u0435\u0439 \u2014 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439). <\/i> \u0422\u0435\u043a\u0441\u0442 \u0436\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u044b, \u043a\u0430\u043a \u0432 javascript. \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u043d\u0435 \u0445\u0438\u0442\u0440\u044b\u043c \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043c\u044b \u043b\u0435\u0433\u043a\u043e \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u043d\u0430 <u>\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435<\/u> \u2014 \u0447\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u043e \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0447\u0435\u043c \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c html, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0446\u0435\u043b\u0435\u043d \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430. \u041c\u043d\u043e\u0433\u0438\u0445 \u043f\u0440\u0438\u0432\u0435\u0440\u0436\u0435\u043d\u0446\u0435\u0432 html \u044d\u0442\u043e \u0443\u0434\u0438\u0432\u043b\u044f\u0435\u0442, \u043d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0430\u0432\u0434\u0435 \u0432 \u0433\u043b\u0430\u0437\u0430 \u2014 \u043c\u044b, \u0438 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0432\u044b, \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439. \u0422\u0435\u043a\u0441\u0442\u0430 \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0445 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442\u0443 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447\u0438 \u043a json \u0441 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439, \u0437\u0430\u0447\u0435\u043c \u0442\u043e\u0433\u0434\u0430 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0433\u0438\u043f\u0435\u0440\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438? <br \/>  \u0410 \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043e\u0442\u0441\u0442\u0443\u043f\u0430\u0445, \u043c\u0430\u0441\u043a\u0430 \u043b\u0435\u0433\u043a\u043e \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043c\u0435\u0441\u0442\u0430.<\/p>\n<h4>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c<\/h4>\n<p>  \u042d\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u043c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 MaskJS \u2014 \u0447\u0442\u043e \u0431\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u0423\u0434\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c\u043e\u0439 \u0441 html, a \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 webkit \u0434\u0432\u0438\u0436\u043a\u043e\u043c \u2014 \u0434\u0430\u0436\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c. \u0418 \u043d\u0435 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <i>html parsing<\/i> \u0432 webkit-\u0430\u0445 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e <i>str.charCodeAt<\/i> \u0438 <i>document.createElement<\/i> \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u044b\u0435 ). \u0418 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \/ \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044e \/ dom \u0441\u043e\u0431\u044b\u0442\u0438\u044f \/ data bindings \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 MaskJS \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435, \u043d\u0430\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b, \u0430 \u044d\u0442\u043e \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u044e\u0441 \u043a \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0435\u043d\u0438\u044e \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0415\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 jsperf.com \u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u0432 readme \u043d\u0430 <a href=\"https:\/\/github.com\/tenbits\/MaskJS\">\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>.<\/p>\n<h4>\u0413\u0438\u0431\u043a\u043e\u0441\u0442\u044c<\/h4>\n<p>  MaskJS \u2014 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043a \u043b\u044e\u0431\u044b\u043c \u0442\u0435\u0433\u0430\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432(<b>H<\/b>MVC) \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0439 \u0444\u0438\u0447\u0435. \u041c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043a \u043b\u044e\u0431\u044b\u043c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043f\u0440\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435, \u0431\u0443\u0434\u0443\u0442 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0418 \u043d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u043c\u0430\u0441\u043a\u0430 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 DocumentFragment, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 DOM \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438. <br \/>  \u0412\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0434\u043e\u0431\u0438\u0435 IoC \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432, \u0430 \u0435\u0441\u043b\u0438 \u0432\u044b \u00ab\u0432 \u0442\u0435\u043c\u0435\u00bb, \u0442\u043e \u0441\u0430\u043c\u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u043b\u0435\u0433\u043a\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0445 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0438\u043b\u0438 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c <i>(\u00ab\u043c\u043e\u043a\u0430\u0442\u044c\u00bb)<\/i>. <br \/>  \u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c jQuery widget (\u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u043e\u0433) \u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043b\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0435\u0433\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0432 \u0434\u043e\u043c?.. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438\u0448\u0435\u043b \u043e\u0442\u0432\u0435\u0442 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440 \u2014 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0432\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0432 DOM, \u0430 \u043f\u043e\u0442\u043e\u043c \u0435\u0449\u0451 \u043f\u0440\u043e\u0448\u043b\u0438\u0441\u044c \u043f\u043e \u043d\u0443\u0436\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0438 \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 <i>widget-\u044b<\/i>. \u0421 MaskJS \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u0422\u044d\u0433-\u041e\u0431\u0451\u0440\u0442\u043a\u0443 \u043d\u0430\u0434 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u043c, \u0438 \u043c\u0430\u0441\u043a\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0441\u0451 \u0437\u0430 \u0432\u0430\u0441:  <\/p>\n<pre><code class=\"javascript\">mask.registerHandler(':timer', Compo({    \/\/ \u043f\u0440\u0438\u043c\u0435\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u0430    template: '.cotainer &gt; .someInnerPanel',    slots: {        domInsert: function(){              \/\/ \u044d\u0442\u043e\u0442 \u0441\u043b\u043e\u0442 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0432 &quot;\u0436\u0438\u0432\u043e\u0439 \u0434\u043e\u043c&quot;,               \/\/ \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u043e\u043c-\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0440\u0430\u0441\u0447\u0451\u0442\u044b        }    }    onRenderEnd: function(){            this.$.mySuperTimer({ timespan:  this.attr.timespan &lt;&lt; 0 });            \/**                 \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 - \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 \u044d\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438, \u0435\u0441\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e                \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0441 \u043c\u043e\u0434\u0435\u043b\u0438 \/ \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0442\u043e\u0433\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043b\u044e\u0431\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c,                \u0442\u0430\u043a \u0438 \u043b\u044e\u0431\u044b\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0430.                \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043b\u0435\u0432\u044b\u0439 \u0441\u0434\u0432\u0438\u0433 \u0434\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u0432 \u0446\u0435\u043b\u043e\u0435 (int) \u0447\u0438\u0441\u043b\u043e, \u0430 undefined \u0432 \u043d\u043e\u043b\u044c.           *\/    } });  \/\/ = \u0448\u0430\u0431\u043b\u043e\u043d \/\/ ... :timer timespan=&quot;5000&quot;; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043c\u043e\u0436\u043d\u043e \u0445\u043e\u0442\u044c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u044d\u0442\u043e\u0442 \u0442\u044d\u0433 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435, \u0430 \u0432\u043e\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u0430\u0439\u043c\u0435\u0440\u043e\u0432:<\/p>\n<pre><code class=\"javascript\">$.getJSON(url).done(function(collection){      jmask(&quot;ul &gt; % each=timers &gt; li &gt; :timer timespan='~[timespan]'; &quot;, collection).appendTo(document.body); }); <\/code><\/pre>\n<h2>Design Patterns<\/h2>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043d\u043e \u0443 \u0432\u0441\u0435\u0445 \u0435\u0441\u0442\u044c \u043e\u0431\u0449\u0430\u044f \u0446\u0435\u043b\u044c \u2014 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u0438 \u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438. \u0412 MaskJS \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0430\u043a\u0446\u0435\u043d\u0442 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 <b>V<\/b>(<i>View<\/i>) \u0438\u0437 MVC, \u0438 \u043c\u044b \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0430\u0431\u0441\u0442\u0440\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u041c\u043e\u0434\u0435\u043b\u0438. \u041c\u0430\u0441\u043a\u0435 \u043d\u0435 \u0432\u0430\u0436\u043d\u043e, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u0430\u0448 Business Layer \u0438 \u043e\u0442\u043a\u0443\u0434\u0430 \u043e\u043d \u00ab\u0431\u0435\u0440\u0451\u0442\u0441\u044f\u00bb. \u0410 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043b\u044e\u0431\u0430\u044f \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430 \u043e\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u2014 \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u043e, \u043d\u043e \u0438 \u043e\u0442 MaskJS \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432 \u0446\u0435\u043b\u043e\u043c. \u041c\u043e\u0434\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a Data Centric (\u043f\u0440\u0438\u043c. \u2014 json service response), \u0442\u0430\u043a \u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u043c Domain Model. \u041d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0430 \u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. <br \/>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0435\u0432 MVC, \u043a\u043e\u0435 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u2014 \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e, \u0434\u0435\u043b\u0430\u044e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0446\u0435\u043b\u044f\u0445 \u043b\u0443\u0447\u0448\u0435\u0439 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438.  <\/p>\n<ul>\n<li>\u0412\u043e\u0442 \u0443 \u043d\u0430\u0441 View:\n<pre><code class=\"javascript\">mask.render(&quot; div &gt; 'A' &quot;);<\/code><\/pre>\n<p>  <\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0432 \u0431\u0443\u043a\u0432\u0443 \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 (<code> var model = { letter: 'A' } <\/code>):\n<pre><code class=\"javascript\">mask.render(&quot; div &gt; '~[letter]'  &quot;, model) <\/code><\/pre>\n<p> \u2014 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c (Data)Model \/ View  <\/li>\n<li>\u0421\u0432\u044f\u0436\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u0441 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0442\u0430\u043a, \u0447\u0442\u043e \u0431\u044b \u043f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0431\u0443\u043a\u0432\u044b \u0432 \u043c\u043e\u0434\u0435\u043b\u0435 \u2014 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u043e\u0441\u044c:<br \/> \n<pre><code class=\"javascript\">mask.render(&quot; div &gt; '~[bind: letter]' &quot;, model);<\/code><\/pre>\n<p> \u2014 \u0432\u043e\u0442 \u0443\u0436\u0435 \u0438 Model \/ View \/ ViewModel  <\/li>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u043b\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u043c Model \/ View \/ Adapter:<br \/> \n<pre><code class=\"javascript\">mask.registerHandler(':myModelAdapter', {     renderStart: function(model){         _extendModelFromLocalStorage(model);    } });  mask.render(&quot; :myModelAdapter &gt; div &gt; '~[letter]' &quot;, model); <\/code><\/pre>\n<p>  <\/li>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c view \u043e\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c Model \/ View \/ Presenter<br \/> \n<pre><code class=\"javascript\">mask.registerHandler(':myPresenter', Compo({         onRenderStart: function(model){                 this.letter = _handle(model);                 this.model = this;         } });  mask.render(&quot; :myPresenter &gt; div &gt; '~[letter]' &quot;, model); <\/code><\/pre>\n<p>  <\/li>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0430\u0434\u043e, \u0447\u0442\u043e \u0431\u044b \u0431\u0443\u043a\u0432\u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u043b\u0430\u0441\u044c \u043d\u0430 \u201cB\u201d \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u2013 \u043f\u0440\u0438\u0432\u0435\u0442 Model \/ View \/ Controller:<br \/> \n<pre><code class=\"javascript\">mask.registerHandler(':letterChanger', Compo({ \tevents: { \t\t'click: div' : function(event){ \t\t\tthis.model.letter = 'B';                         \/\/ \u0435\u0441\u043b\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438 - \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u0438                         \/\/ this.$.text(\u2018B\u2019);  \/* this.$ = jQuery\/Zepto wrapper *\/ \t\t} \t} }); mask.render(&quot; :letterChanger &gt; div &gt; '~[bind: letter]'  &quot;); <\/code><\/pre>\n<p>  <\/li>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c + \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043a\u043b\u0438\u043a \u2013 \u0438 \u0432\u043e\u0442 \u0443\u0436\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u2013 HMVC<br \/> \n<pre><code class=\"javascript\">mask.render(':myAdapter &gt; :letterChanger &gt; div &gt; \u201c~[bind: letter]&quot; '); <\/code><\/pre>\n<p>  <\/li>\n<li>\u0415\u0441\u043b\u0438 \u043d\u0430\u0434\u043e \u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u2014 (\u044d\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432 MaskJS)<br \/> \n<pre><code class=\"javascript\">mask.registerHandler(':letter', Compo({      template: &quot;:letterChanger &gt; div &gt; '~[bind: letter]' &quot; }); mask.render(&quot; :myAdapter &gt; :letter; &quot; , model); <\/code><\/pre>\n<p>  <i>\u0410 \u0432\u044b \u0437\u043d\u0430\u043b\u0438 \u2014 \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0439 \u043c\u043e\u0449\u0438 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u0438 \u043d\u0435 \u043f\u043b\u043e\u0445\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430\u043c\u0438, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b, \u0438\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u0441\u0442\u0438\u043b\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442:<\/i>  <\/p>\n<pre><code class=\"javascript\">header {     #logo;     :menu;     :userInfo;  } :viewManager {    :userView;    :aboutView; }  :pageActivity; :notifier;  :footer; <\/code><\/pre>\n<p>  <i>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043b\u0443\u0447\u0448\u0435\u0439 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439.<\/i><\/p>\n<\/li>\n<\/ul>\n<p>  \u041d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0432 \u044d\u0442\u0438\u0445 \u0432\u0441\u0435\u0445 MV* \u2014 \u043d\u0435 \u0438\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0437\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u0438\u0442\u044f\u043d\u0443\u0442\u043e \u0437\u0430 \u0443\u0448\u0438 (\u043d\u0430\u0434\u0435\u044e\u0441\u044c \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435 \u043e\u0431\u0438\u0434\u0435\u043b?). \u0410 \u0441\u0430\u043c\u0430 \u0441\u0443\u0442\u044c, \u0442\u043e \u043a\u0430\u043a \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0418 \u043a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u0438\u043c \u0441\u0430\u043c\u044b\u043c \u0440\u0430\u0437\u0433\u0440\u0443\u0436\u0430\u044f \u0441\u0430\u043c\u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0445 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438.<\/p>\n<h2> Component \/ (Controller) \/ (Widget) <\/h2>\n<p>  <\/p>\n<h5> AST <\/h5>\n<p>  <\/p>\n<h6>MaskDOM<\/h6>\n<p>  \u00ab\u041f\u0430\u0440\u0441\u0435\u0440\u00bb \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 View \u0432 \u0434\u0435\u0440\u0435\u0432\u043e \u00ab\u043d\u043e\u0434\u00bb. \u041f\u043e \u043d\u0435\u043c\u0443 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u00ab\u0431\u0438\u043b\u0434\u0435\u0440\u00bb \u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c \u2014 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 HTMLElement-\u044b \u0438 \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b (\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0433\u043e\u0432). \u0412 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 MaskJS \u0432\u0445\u043e\u0434\u0438\u0442 \u0435\u0449\u0451 \u043e\u0434\u043d\u0430 \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u2014 <a href=\"https:\/\/github.com\/tenbits\/mask-j\">jmask@github<\/a>. \u041e\u043d\u0430 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 maskDOM \u0434\u0435\u0440\u0435\u0432\u043e\u043c, \u0432 \u043d\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 jQuery \u0438 \u0435\u0451 \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0437\u0434\u0435, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c maskdom \u0434\u0435\u0440\u0435\u0432\u043e \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 <i>onRenderStart<\/i> \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b:  <\/p>\n<pre><code class=\"javascript\">\/\/.. onRenderStart: function() {      jmask(this).tag('div').addClass('pixel').wrappAll('.container data-id=dialog');     \/\/  eq. == jmask(this).wrappAll('.pixel &gt; .container data-id=dialog'); } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0433\u0434\u0435-\u0442\u043e \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 jQuery \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f DOM, \u0442\u043e \u043c\u0430\u0441\u043a\u0430 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435, \u0438 \u043f\u0440\u0438\u0447\u0435\u043c <a href=\"http:\/\/jsperf.com\/dom-builder-mask-vs-jquery\/4\">\u0432 \u0440\u0430\u0437\u044b \u0431\u044b\u0441\u0442\u0440\u0435\u0435<\/a>, \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440  <\/p>\n<pre><code class=\"javascript\">$('&lt;div&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/div&gt;').addClass('container').data('foo','bar').children('span').text('2013').appendTo('body')  \/\/ \u0442\u043e \u0436\u0435 \u0441 jmask jmask('div &gt; span').addClass('container').data('foo','bar').children('span').text('2013').appendTo(document.body) jmask('.container foo=bar &gt; span &gt; &quot;~[text]&quot;').appendTo(document.body, { year: 2013 }) <\/code><\/pre>\n<h6> Controllers Tree <\/h6>\n<p>  \u0411\u0438\u043b\u0434\u0435\u0440 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u0435\u0440\u0435\u0432\u043e \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b  <\/p>\n<pre><code class=\"javascript\">mask.registerHandler(':page', Compo({     \/\/ ...     foo: function(){           \/\/ ...           \/\/ \u0444\u0443\u043d\u043a\u0446\u0438\u044f find \u0432\u0435\u0440\u043d\u0451\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442           this.find(':scroller').scroller.refresh();           this.closest(':item[data-id=5]]').bar();            \/\/ \u0447\u0435\u0440\u0435\u0437 jmask \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b           jmask(this).find(':listItem').each(function(x) { x.bar() })     } }); <\/code><\/pre>\n<p>  <\/p>\n<h4> Signals \/ Slots <\/h4>\n<p>  <a href=\"https:\/\/github.com\/tenbits\/mask-compo\">mask-compo@github<\/a><\/p>\n<p>  \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0445\u044d\u0448 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441 \u043f\u0435\u0440\u0435\u0447\u043d\u0435\u043c \u0432\u0441\u0435\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0447\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u2014   <\/p>\n<pre><code class=\"javascript\">  var _myCompo = Compo({      constructor: function(){ this.name = 'C'; },      events: {         'touchstart: .pane': function(event){ this instanceof _myCompo \/\/ -&gt; true },          \/\/...     } }); <\/code><\/pre>\n<p>  <b>\u041d\u043e<\/b> \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u044b \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043a \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435(css \u043a\u043b\u0430\u0441\u0441\u0430\u043c) \u2014 \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u2014 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u043a <u>\u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<\/u> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442 \u043d\u0430\u043c \u0437\u0430\u043c\u0435\u043d\u0443 View. \u0418 \u044d\u0442\u043e \u043d\u0435 \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e. \u0412\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0435 \u0434\u0435\u043b\u043e, \u0445\u043e\u0442\u044f MaskJS \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 <i>expressions<\/i> \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 \u2014 <code> div &gt; '~[: controllerMethod(&quot;test&quot;) ]' <\/code><i>(\u0437\u0430\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0432 \u043c\u0430\u0441\u043a\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0441\u0432\u043e\u0439 <i>expression parser<\/i> \u0438 <i>evaluator<\/i> \u0431\u0435\u0437 <i>with\/new Function \/eval<\/i>).<\/i> \u041d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0432\u0432\u0435\u0440\u0445 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u00ab\u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430\u00bb \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u2014 \u0430 \u0442\u0430\u043c \u0443\u0436\u0435, \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442, \u0442\u043e\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043b\u043e\u0433\u0438\u043a\u0443.   <\/p>\n<pre><code class=\"javascript\">  mask.registerHandler(':myCompo', Compo({      constructor: function(){ this.name = 'C'; },      slots : {         greet: function(sender){              \/\/ sender \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 dom \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u044d\u0442\u043e \u0441\u0430\u043c event object, \u0438\u043d\u0430\u0447\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043f\u043e\u0441\u043b\u0430\u0432\u0448\u0438\u0439 \u0441\u0438\u0433\u043d\u0430\u043b             alert(this.name); \/\/ &quot;C&quot;               \/\/ return false - \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0432\u0432\u0435\u0440\u0445.         },          \/\/...     } })); mask.render(&quot; :myCompo &gt; .panel x-signal='click: greet'; &quot;); <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0442\u043e\u0432 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 <code>slots<\/code> \u2014 \u044d\u0442\u0438\u043c \u0441\u0430\u043c\u044b\u043c, \u043c\u044b \u0447\u0451\u0442\u043a\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0430 \u043c\u0430\u0441\u043a\u0430 \u0441\u0430\u043c\u0430 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u044d\u0442\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b. <br \/>  \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043b\u043e\u0442 \u0438\u043b\u0438 \u0441\u0438\u0433\u043d\u0430\u043b \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u044b\u043b\u0430\u044e\u0442 \u044d\u0442\u043e\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u00ab\u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438\u00bb \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432, \u043f\u043e\u043b\u0443\u0447\u0430\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 <i>:disabled<\/i>.<\/p>\n<h5> Pipes <\/h5>\n<p>  \u041e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0433\u0443\u043b\u044f\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0432\u0435\u0440\u0445 \u0438\u043b\u0438 \u0432\u043d\u0438\u0437 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0438 \u0447\u0442\u043e \u0431\u044b \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0434\u0432\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432\u043d\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438, \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0443\u0431\u043a\u0438.  <\/p>\n<pre><code class=\"javascript\">mask.registerHandler(':userInfo', Compo({     pipes: {         \/\/ pipe name         user: {              logout: function(){                  this.model.authenticated = false;             }         }     } }));  \/\/ = template.mask = menu {      #logout x-pipe-signal='click: user.logout' &gt; button &gt; 'Sign out'      \/\/ .... } section #content  {       \/\/ \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u043e\u0431\u044a\u0435\u043a\u0442 &quot;user&quot; \u0438\u0437 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u043d\u0438\u0436\u043d\u0435\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u0443       % use=&quot;user&quot; &gt; :userInfo type='brief' ;      \/\/ .. } section #footer {     \/\/ bind to &quot;user.authenticated&quot; prop     %% if=&quot;user.authenticated&quot; &gt; % each=&quot;user.keys&quot; &gt; &quot;~[.]&quot; } <\/code><\/pre>\n<p>  <i>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0436\u043a\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<\/i><\/p>\n<p>  \u0412\u0441\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u0438\u0437 \u0441\u0430\u043c\u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432:  <\/p>\n<pre><code class=\"javascript\">   this.emitIn('name', args...);       \/\/ \u0434\u0435\u0442\u044f\u043c    this.emitOut('name', args...);    \/\/ \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c        Compo.pipe('user').emit('logout'); \/\/ \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u043a &quot;\u0442\u0440\u0443\u0431\u0435&quot;. <\/code><\/pre>\n<h4> Bindings <\/h4>\n<p>  <a href=\"https:\/\/github.com\/tenbits\/mask-binding\">mask-binding@github<\/a><br \/>  \u041a\u0430\u043a \u0436\u0435 \u0432\u0435\u0431 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0431\u0435\u0437 \u00ab\u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a\u00bb? \u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0451 \u0432 \u043b\u0443\u0447\u0448\u0438\u0445 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u044f\u0445 \u0436\u0430\u043d\u0440\u0430: One- \/ Two-way Bindings, Custom Binding Providers, Array Mutators, Validators.<br \/>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 <a href=\"http:\/\/libjs.it\/mask-try\">mask-try | bindings<\/a>. \u0411\u0438\u043d\u0434\u0438\u043d\u0433\u0438 \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0438\u0440\u043e\u0434\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 render time \u043e\u043d\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0434\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043a \u043c\u043e\u0434\u0435\u043b\u0435 \u0447\u0435\u0440\u0435\u0437 <code>defineProperty\/ __defineSetter__<\/code>. \u0418 \u0434\u0430 \u2014 \u0432\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0441\u0442\u0430\u0440\u044b\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u2014 \u043d\u043e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c \u0432\u0438\u0434\u0430 <code>setX\/getX<\/code>, \u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u043c, \u043a\u0430\u043a <code>.get(&quot;x&quot;)\/.set(&quot;x&quot;)<\/code>. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043e\u0431\u043e\u0439\u0442\u0438. <br \/>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b:  <\/p>\n<ul>\n<li>\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043f\u0440\u0438\u043c\u0435\u0440:<br \/> \n<pre><code> div style='height: ~[bind: item.age * index + 10]px' <\/code><\/pre>\n<p> \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432\u043e\u0437\u0440\u0430\u0441\u0442 \u0438\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441 \u2014 \u0442\u0430\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u043e\u0442\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 <code>div<\/code>  <\/li>\n<li>\u0434\u0432\u0443\u0445-\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 <code>dom events \/ (jquery) custom events <\/code> \/ \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u0445. <\/li>\n<li>\u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u043c\u043e\u0434\u0435\u043b\u044c \u0431\u044b\u043b\u0430 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u0430\u044f, \u0434\u0432\u0443\u0445-\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442(\u044b) <code>:validate<\/code>. \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438, \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442 \u0435\u0433\u043e, \u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0438\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0432\u0435\u0440\u043d\u0443\u0442\u0441\u044f \u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c\u0443 \u0432\u0435\u0440\u043d\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e. \u0422\u0430\u043a \u043d\u0430\u0448\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0439.<br \/> \n<pre><code> input #device-type type=value &gt; :dualbind value=&quot;age&quot; {     :validate match=&quot;^[a-z]{2}-[\\d]{4}$&quot; message=&quot; ... pattern: xx-1234&quot; } <\/code><\/pre>\n<p>  <\/li>\n<li>\u043a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043c\u0430\u0441\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 <code>%<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043b\u043e\u0433\u0438\u043a\u0443 <code>if\/else\/each\/repeat\/use<\/code> \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u0422\u0430\u043a \u0432\u043e\u0442, \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 bindings \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0442\u0430\u043a\u0436\u0435 one-way binding \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u0432\u0435\u0449\u0435\u0439:<br \/> \n<pre><code>%% if=&quot;state == true&quot; {         %% each=userList {        \/\/ ... template  <\/code><\/pre>\n<\/li>\n<\/ul>\n<h5> \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 <\/h5>\n<p>  \u0412\u0430\u0436\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u043e \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u044f. \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043d\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u0441\u0430\u043c\u044b\u0445 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445(<code>:customCheckBox<\/code>) \u0434\u043e \u0441\u0430\u043c\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0438\u0445(<code>:inbox<\/code>), \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u043c. \u0427\u0442\u043e \u0431\u044b \u043e\u0442\u043b\u043e\u0432\u0438\u0442\u044c \u0431\u0430\u0433\u0438, \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u0435\u0441\u0442\u044c \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044b <code>debugger<\/code> \u0438 <code>log<\/code>:  <\/p>\n<pre><code>.user {      % debugger;       .user-status &gt; '~[bind:info.status]'      %% log=&quot;info.status&quot;; } <\/code><\/pre>\n<p>  <\/p>\n<ul>\n<li><code>debugger<\/code> \u2014 \u0432\u043e \u0432\u0440\u0435\u043c\u044f <i>render flow<\/i> \u043c\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u0438 \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u044d\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0438 html-\u044d\u043b\u0435\u043c\u0435\u043d\u0442.  <\/li>\n<li><code>log<\/code> \u2014 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u041c\u043e\u0436\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043a \u043c\u043e\u0434\u0435\u043b\u0438, \u0442\u0430\u043a \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443.  <\/li>\n<\/ul>\n<p>  <\/p>\n<h6> Hot Reload Plugin <\/h6>\n<p>  <font color=\"#555\">\u2026 \u0434\u043b\u044f <a href=\"http:\/\/github.com\/tenbits\/IncludeJS\"> IncludeJS<\/a><\/font><br \/>  \u00ab\u0413\u043e\u0440\u044f\u0447\u0438\u043c\u00bb \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435 \u0443\u0434\u0438\u0432\u0438\u0448\u044c \u2014 \u0434\u0430 \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f, \u043d\u043e \u0441\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 \u043d\u0435 \u0432\u0441\u0451 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e. \u0417\u0434\u0435\u0441\u044c \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f, dom \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>IncludeJS<\/code> \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0441\u0435\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0444\u0430\u0439\u043b \u043c\u043e\u0436\u0435\u0442 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 reload. \u0422\u0430\u043a\u0436\u0435 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432 <code>IncludeJS.Builder<\/code>-\u0430 \u0432\u0445\u043e\u0434\u0438\u0442 \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0447\u0435\u0440\u0435\u0437 <code>socket.io<\/code> \u043e\u043f\u043e\u0432\u0435\u0449\u0430\u0435\u0442 <code>IncludeJS<\/code>. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439. \u0410 \u0432\u043e\u0442 MaskJS \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0432 <i>reload \u043f\u043b\u0430\u0433\u0438\u043d\u0435<\/i> \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 <code>mask.registerHandler<\/code> \u2014 \u0432 \u043d\u0435\u043c \u043e\u043d \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438 \u0441\u043e\u043e\u0442\u043d\u043e\u0441\u0438\u0442 \u0438\u0445 \u043a \u043f\u0443\u0442\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0422\u0430\u043a\u0436\u0435 \u043f\u043b\u0430\u0433\u0438\u043d \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u0447\u0435\u0440\u0435\u0437 socket.io \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0441\u043e\u0437\u0434\u0430\u0451\u0442, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u043e\u0432<code>(instances)<\/code>. \u0418 \u0434\u0430\u043b\u0435\u0435 \u0434\u0435\u043b\u043e \u0442\u0435\u0445\u043d\u0438\u043a\u0438 \u2014 \u0432\u044b\u0437\u0432\u0430\u0442\u044c <code>remove\/dispose<\/code> \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0438 \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u0445 \u043c\u0435\u0441\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u0441\u043b\u043e\u0442\u044b, \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 dom \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0451\u043d\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u2014 \u0441\u0438\u0433\u043d\u0430\u043b \u0438 \u0442\u0430\u043a \u0434\u043e\u0439\u0434\u0451\u0442. \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 <i>mask markup<\/i> \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u043c\u044b \u0447\u0442\u043e-\u0442\u043e \u0432 \u043d\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438, \u0442\u043e\u0433\u0434\u0430 <code>IncludeJS<\/code> \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u044d\u0442\u043e, \u043a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u0441\u0430\u043c\u043e\u043c <code>customCompo.js<\/code> \u0444\u0430\u0439\u043b\u0435. \u0422\u0435\u043c\u0430 IncludeJS \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0451\u043c\u043a\u0430\u044f \u0438 \u043e\u0431 \u0432\u0441\u0435\u0445 \u0435\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 \u043a\u0430\u043a-\u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437. \u041d\u043e \u0442\u043e, \u0447\u0442\u043e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 MaskJS \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043d\u0430 \u043b\u0435\u0442\u0443, \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0441\u043f\u0440\u044f\u0442\u0430\u043d \u0437\u0430 N \u043a\u043b\u0438\u043a\u0430\u043c\u0438(\u043f\u0440\u0438\u043c. \u0433\u0434\u0435-\u0442\u043e \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435).<\/p>\n<h4> Node.js \u0438 TODO <\/h4>\n<p>  \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 MaskJS \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 node.js. \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0435 \u0436\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f mask dom, \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f html dom, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 <i>string buffer<\/i>. \u0410 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 DOM \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 <i>onRenderEnd<\/i> \u043c\u0435\u0442\u043e\u0434\u0435. <br \/>  \u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0432\u044f\u0437\u0430\u043d\u0430 \u043d\u0435 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445, \u043a\u0430\u043a \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0444\u0440\u044d\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u0445, \u0430 \u043d\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0445. \u041f\u043e\u043c\u043d\u0438\u0442\u0435? \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b. \u0422\u0443\u0442 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Master Pages \u0442\u0435\u0445\u043d\u0438\u043a\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. <br \/>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0435\u0449\u0451 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430, \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0451 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043d\u044e\u0430\u043d\u0441\u0430\u043c\u0438. \u041d\u043e \u0446\u0435\u043b\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0431\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b\/\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \/ \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043a\u0430\u043a \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 (\u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c), \u043d\u043e \u0438 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 \u043d\u0430 <i>backend<\/i>-\u0435 \u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435. <br \/>  \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0435\u0449\u0451 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u0435\u0440\u0442\u043a\u0443 \u0438\u0437 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043d\u0430\u0434 \u043a\u0430\u043a\u0438\u043c \u043d\u0438\u0431\u0443\u0434\u044c css \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c. \u041c\u0430\u0441\u043a\u0430 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0432 \u0440\u0430\u0437\u044b \u2014 \u0441\u043f\u0440\u044f\u0447\u0435\u043c css \u043a\u043b\u0430\u0441\u0441\u044b \u0438 <code>div wrappers<\/code> ). \u0418 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u0435\u043d\u044e\/\u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u0435\u0439\/\u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0442.\u0434. <\/p>\n<p>  <code>FIN<\/code><\/p>\n<p>  \u042d\u0442\u043e \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b. \u041c\u043d\u043e\u0433\u043e\u0435 \u0435\u0449\u0451 \u043d\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b, \u043d\u043e \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0445\u043e\u0442\u044f \u0431\u044b \u0442\u043e, \u043e \u0447\u0451\u043c \u0448\u043b\u0430 \u0440\u0435\u0447\u044c, \u0432\u0435\u0434\u044c \u0441 \u043c\u0435\u043d\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0447\u0438\u043a \u043d\u0438\u043a\u0430\u043a\u043e\u0439, \u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u043c\u043d\u043e\u0433\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043b\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f. <br \/>  \u0412 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0435 \u043f\u0438\u0448\u0438\u0442\u0435 \u2014 \u00ab\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438 \u043d\u0430 \u0418\u041a\u0421 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a!\u00bb \u2014 \u043c\u044b \u0441\u043b\u0435\u0434\u0438\u043c \u0437\u0430 \u043c\u0435\u0439\u043d\u0441\u0442\u0440\u0438\u043c\u043e\u043c, \u0430 \u0432\u043e\u0442 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c, \u0431\u0443\u0434\u0443 <u>\u043e\u0447\u0435\u043d\u044c<\/u> \u0440\u0430\u0434. <\/p>\n<p>  \u0425\u043e\u0442\u0435\u043b \u0431\u044b \u0435\u0449\u0451 \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u0445\u0430\u0431\u0440\u0430\u044e\u0437\u0430\u0440\u0430 <a href=\"http:\/\/habrahabr.ru\/users\/rma4ok\/\" class=\"user_link\">rma4ok<\/a> \u0437\u0430 \u043c\u043d\u043e\u0433\u0438\u0435 \u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b. \u041c\u043d\u043e\u0433\u043e\u0435 \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0443\u0447\u0435\u0441\u0442\u044c. \u0422\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043e\u0432\u0435\u0442\u0430\u043c \u0438\u043b\u0438 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f\u043c. \u0415\u0441\u043b\u0438 \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u0438\u043a\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \/ \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u2014 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438 ). \u0410 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c\u0441\u044f \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435.<\/p>\n<p>  \u0423\u0434\u0430\u0447\u0438.    \t \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\/179359\/\"> http:\/\/habrahabr.ru\/post\/179359\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/690\/9b5\/d62\/6909b5d6218992d251e1aa7dd7677997.png\"\/><br \/>  \u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044f MaskJS \u0432\u043e\u0442 \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043b\u0443\u0433\u043e\u0434\u0430, \u043e\u043d \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0438\u0437 DOM \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0432 \u043e\u0447\u0435\u043d\u044c \u043c\u043e\u0449\u043d\u044b\u0439, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u0431 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u044e \u0432\u0430\u0441 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u0430\u043c\u0438 \u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0423\u0432\u0435\u0440\u0435\u043d, \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0438 \u0441\u043b\u043e\u0442\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e DOM \u0441\u043e\u0431\u044b\u0442\u0438\u0439. \u0418 \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u0435\u043b\u0430\u044e\u0442 \u043d\u0430\u0448\u0443 \u0436\u0438\u0437\u043d\u044c \u043f\u0440\u043e\u0449\u0435. \u041c\u0430\u0441\u043a\u0430 \u043b\u0435\u0433\u043a\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0438 \u0434\u0430\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0436\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435\u043c \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <i><code>render flow<\/code><\/i>, \u0433\u0434\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f Document Fragment \/ \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \/ \u00ab\u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0438\u00bb. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u044e \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c, \u043d\u043e \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e, \u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-179359","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179359","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=179359"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/179359\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=179359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=179359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=179359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}