{"id":234409,"date":"2014-08-25T11:25:03","date_gmt":"2014-08-25T07:25:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=234409"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=234409","title":{"rendered":"<span class=\"post_title\">BaasCMS \u2013 \u0431\u044d\u043a\u0435\u043d\u0434 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d<\/span>"},"content":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/3f3\/120\/d4f\/3f3120d4f50e48319ffc89fa1466486b.jpg\"\/><\/p>\n<p>  <b>BaasCMS<\/b> \u2014 \u044d\u0442\u043e JavaScript CMS, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0430\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Backend_as_a_service\">BaaS<\/a>. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e <a href=\"https:\/\/parse.com\/\">Parse.com<\/a>.<\/p>\n<p>  <a href=\"https:\/\/github.com\/Artod\/baascms\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 BaasCMS<\/a> \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 GitHub.<\/p>\n<p>  <a href=\"https:\/\/artod.github.io\/baascms\/demo\/#\/\"><b>BaasCMS Demo<\/b> \u043d\u0430 GitHub Pages<\/a><br \/>  \u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 <a href=\"http:\/\/baascms.tumblr.com\/#\/\"><b>BaasCMS Demo<\/b> \u043d\u0430 Tumblr<\/a><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/artod.github.io\/baascms\/admin\/parse\/#\/\">\u0410\u0434\u043c\u0438\u043d-\u043f\u0430\u043d\u0435\u043b\u044c<\/a> \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043c\u043e (\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\/\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u044b). \u0412 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0430\u0434\u043c\u0438\u043d\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u044e\u0447\u0438:<\/p>\n<ul>\n<li><i>Application ID<\/i>: nM7P7NnFA95CK1WrqWOf9wa3mskctaTOdk9vYflj<\/li>\n<li><i>Javascript Key<\/i>: 0zHfA9FG8L1xR699qmFXjxkZ1pDxgml0MWZMpqJG<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u0442\u0430\u0440\u0442<\/h2>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 BaasCMS \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<ol>\n<li>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c \u043d\u0430 <a href=\"https:\/\/www.parse.com\/#signup\">Parse.com<\/a>.<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 <a href=\"https:\/\/www.parse.com\/apps\/new\">\u043d\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a>.<\/li>\n<li>\u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 <b>Application ID<\/b> \u0438 <b>Javascript Key<\/b> \u0432\u0430\u0448\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0438\u0445 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/artod.github.io\/baascms\/admin\/parse\/#\">\u0410\u0434\u043c\u0438\u043d-\u043f\u0430\u043d\u0435\u043b\u0438 BaasCMS<\/a>.<\/li>\n<\/ol>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0430\u0434\u043c\u0438\u043d\u043a\u043e\u0439. <\/p>\n<p>  \u0412 BaasCMS \u0432\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 <b>\u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f<\/b>, <b>\u043f\u0430\u0442\u0442\u0435\u0440\u043d <\/b>\u0438 <b>\u0430\u0439\u0442\u0435\u043c<\/b>. \u041a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d. \u0415\u0441\u043b\u0438 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u043f\u0430\u0442\u0442\u0435\u0440\u043d, \u0442\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u044d\u0442\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0439\u0442\u0435\u043c\u044b \u0441 \u043f\u043e\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b \u0432 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0435.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <i>Article<\/i> \u0441 \u043f\u043e\u043b\u044f\u043c\u0438 <i>name <\/i>\u0442\u0438\u043f\u0430 <i>text<\/i>, <i>photo <\/i>\u0442\u0438\u043f\u0430 <i>google drive image<\/i> \u0438 <i>body <\/i>\u0442\u0438\u043f\u0430 <i>textarea<\/i>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <i>\u0411\u043b\u043e\u0433 <\/i>\u0438 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0432\u0443\u044e\u0449\u0435\u043c select \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0430\u0442\u0442\u0435\u0440\u043d <i>Article<\/i>. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u044d\u0442\u0443 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0430\u0439\u0442\u0435\u043c\u044b \u0441 \u043f\u043e\u043b\u044f\u043c\u0438 <i>name<\/i>, <i>photo <\/i>\u0438 <i>body<\/i>.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0444\u0440\u043e\u043d\u0442\u0444\u0435\u0439\u0441\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u0431\u043e\u043b\u0432\u0430\u043d\u043a\u043e\u0439 <a href=\"https:\/\/github.com\/Artod\/baascms\/blob\/master\/baascms.parse.html\">baascms.parse.html<\/a>:<\/p>\n<ol>\n<li>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u0441\u0435\u0431\u0435 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043d\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/li>\n<li>\u041d\u0430\u0439\u0434\u0438\u0442\u0435 19 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0441 <code>Parse.initialize('YOUR-APPLICATION-ID-HERE', 'YOUR-JAVASCRIPT-KEY-HERE');<\/code> \u0438 \u0432\u043f\u0438\u0448\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u0441\u0432\u043e\u0438 \u043a\u043b\u044e\u0447\u0438.<\/li>\n<li>\u0417\u0430\u043b\u0435\u0439\u0442\u0435 \u0444\u0430\u0439\u043b \u043d\u0430 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c. \u0421\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e, \u0432 \u0431\u043e\u043b\u0432\u0430\u043d\u043a\u0435 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u0442\u0438\u043b\u0435\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u043f\u0443\u0433\u0430\u0439\u0442\u0435\u0441\u044c.<\/li>\n<\/ol>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442\u0443 \u0441\u0432\u043e\u0435\u0433\u043e \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f <a href=\"https:\/\/pages.github.com\/\">GitHub Pages<\/a> \u0438\u043b\u0438 <a href=\"https:\/\/www.tumblr.com\/dashboard\">Tumblr<\/a> \u0438\u043b\u0438 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c, \u0433\u0434\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 html \u0438 \u043d\u0435 \u0440\u0435\u0436\u0443\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u044b.<\/p>\n<p>  Tumblr \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430:<\/p>\n<ol>\n<li>\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c \u043d\u0430 <a href=\"https:\/\/www.tumblr.com\/register\">Tumblr<\/a> \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e <a href=\"https:\/\/www.tumblr.com\/new\/blog\">\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0431\u043b\u043e\u0433<\/a>, \u0435\u0441\u043b\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442.<\/li>\n<li>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 <a href=\"https:\/\/www.tumblr.com\/dashboard\">dashboard<\/a> \u0438 \u043a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0443 \u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c\u00bb \u0432 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438.<\/li>\n<li>\u0417\u0430\u0442\u0435\u043c \u043a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u00ab\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML\u00bb \u0432 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438.<\/li>\n<li>\u0412 \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u043c\u0441\u044f \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u0435 \u0432\u0435\u0441\u044c html \u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432\u0430\u0448\u0435\u0439 \u0431\u043e\u043b\u0432\u0430\u043d\u043a\u0438.<\/li>\n<li>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0432\u0430\u0448 \u0431\u043b\u043e\u0433 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435<i> {\u0418\u041c\u042f-\u0412\u0410\u0428\u0415\u0413\u041e-\u0411\u041b\u041e\u0413\u0410}.tumblr.com<\/i> \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/li>\n<\/ol>\n<h2>\u0428\u0430\u0431\u043b\u043e\u043d\u044b<\/h2>\n<p>  HTML-\u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0432 BaasCMS \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre>     &lt;script id=&quot;template-baascms-categories-wrap&quot; type=&quot;text\/template&quot;&gt;         &lt;ul&gt;             &lt;%= htmlElements %&gt;         &lt;\/ul&gt;     &lt;\/script&gt; <\/pre>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Underscore.js-\u0444\u0443\u043d\u043a\u0446\u0438\u044f <a href=\"http:\/\/underscorejs.org\/#template\">template<\/a>.<\/p>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043b\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438\u043c\u0435\u043d\u0443\u044e\u0442\u0441\u044f id \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u043f\u043e\u043a\u0430\u0436\u0443 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u0414\u043b\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 id:<\/p>\n<ul>\n<li><i>template-baascms-categories-element<\/i> \u2014 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u043c\u043d\u043e\u0433\u0438\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439.<\/li>\n<li><i>template-baascms-categories-wrap<\/i> \u2014 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 html \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<\/li>\n<li><i>template-baascms-category<\/i> \u2014 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438.<\/li>\n<\/ul>\n<p>  \u0414\u043b\u044f \u0430\u0439\u0442\u0435\u043c\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f id:<\/p>\n<ul>\n<li><i>template-baascms-items-element<\/i> \u2014 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/li>\n<li><i>template-baascms-items-wrap<\/i> \u2014 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 html \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<\/li>\n<li><i>template-baascms-item<\/i> \u2014 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f.<\/li>\n<\/ul>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0434\u043b\u044f \u0430\u0439\u0442\u0435\u043c\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <i>Article<\/i>, \u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043d\u0438\u0436\u0435 id \u0438 CMS \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u0438\u0445 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u0438\u0442:<\/p>\n<ul>\n<li><i>template-baascms-article-items-element<\/i><\/li>\n<li><i>template-baascms-article-items-wrap<\/i><\/li>\n<li><i>template-baascms-article-item<\/i><\/li>\n<\/ul>\n<h2>\u0412\u0438\u0434\u0436\u0435\u0442\u044b<\/h2>\n<p>  \u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u044b. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0448\u0435\u0441\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442:<\/p>\n<ul>\n<li>Category<\/li>\n<li>Categories<\/li>\n<li>Item<\/li>\n<li>Items<\/li>\n<li>Breadcrumbs<\/li>\n<li>Main<\/li>\n<\/ul>\n<p>  \u0412\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b, \u043a\u0440\u043e\u043c\u0435 <i>Main<\/i>, \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 <i>BaasCMS.Widget<\/i>, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0446\u0438\u0438:<\/p>\n<pre>     {         elementSelector: '', \/\/ jquery \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043a\u0443\u0434\u0430 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c         template: '', \/\/ \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &quot;template-baascms-items-element&quot; \u0438\u043b\u0438 &quot;template-baascms-item&quot;         templateWrap: '', \/\/ \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043e\u043a\u0440\u0443\u0436\u0430\u044e\u0449\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b html, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &quot;template-baascms-items-wrap&quot;         autoLoad: true, \/\/ \u0435\u0441\u043b\u0438 true, \u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0435\u043b\u0430\u0435\u0442 ajax-\u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440         cache: 'yes', \/\/ \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0438\u043b\u0438 \u043d\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0435\u043d\u043d\u043e         select: null, \/\/ \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043f\u043e\u043b\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c         where: {}, \/\/ \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430         beforeQuery: function() {}, \/\/ \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043b\u043b\u0431\u044d\u043a\u0438         afterQuery: function() {},         beforeRender: function() {},         afterRender: function() {}     } <\/pre>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0430\u0439\u0442\u0435\u043c\u044b \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430 <i>Product<\/i>, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u043b\u0435 <i>sale <\/i>\u0440\u0430\u0432\u043d\u043e <i>yes<\/i>:<\/p>\n<pre>     &lt;div id=&quot;sale&quot;&gt;&lt;\/div&gt;     &lt;script&gt;         new BaasCMS.widgets.Items({             elementSelector: '#sale',             template: 'template-product-sale-element',             templateWrap: 'template-product-sale-wrap',             patternName: 'Product',             cache: 'yes',             select: ['name', 'category_id', 'cost', 'preview'],             where: {                 sale: 'yes'             }         });     &lt;\/script&gt; <\/pre>\n<p>  \u0412\u0438\u0434\u0436\u0435\u0442 <i>Main <\/i>\u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 hash URL, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"http:\/\/mtrpcic.github.io\/pathjs\/\">PathJS<\/a>. \u0412 \u0432\u0438\u0434\u0436\u0435\u0442 \u0432\u0448\u0438\u0442\u044b \u0434\u0432\u0430 \u0440\u043e\u0443\u0442\u0430: <code>'#\/baascms\/category\/:cid(\/page\/:page)(\/sort\/:sort)'<\/code> \u0438 <code>'#\/baascms\/category\/:cid\/item\/:iid'<\/code>. \u041f\u0435\u0440\u0432\u044b\u0439 \u0434\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430 \u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u0430\u0439\u0442\u0435\u043c\u043e\u0432, \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430 \u0430\u0439\u0442\u0435\u043c\u0430. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u043e\u0443\u0442\u0430, \u0432\u0438\u0434\u0436\u0435\u0442 <i>Main <\/i>\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0432\u044b\u0448\u0435.<\/p>\n<p>  \u0412 <a href=\"https:\/\/github.com\/Artod\/artod.github.io\/blob\/master\/baascms\/demo\/index.html\">\u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 BaasCMS Demo<\/a> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432.<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 <a href=\"https:\/\/github.com\/Artod\/artod.github.io\/blob\/master\/baascms\/admin\/baascms-admin.js\">\u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 js-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0410\u0434\u043c\u0438\u043d-\u043f\u0430\u043d\u0435\u043b\u0438<\/a> \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0432\u0438\u0434\u0436\u0435\u0442\u0430\u043c\u0438 \u0438 \u043d\u0435 \u043c\u0435\u0448\u0430\u0442\u044c js-\u043a\u043e\u0434 \u0441 html.<\/p>\n<h2>\u0410\u0434\u0430\u043f\u0442\u0435\u0440\u044b<\/h2>\n<p>  \u0410\u0434\u0430\u043f\u0442\u0435\u0440 \u2014 \u044d\u0442\u043e \u043a\u043b\u0430\u0441\u0441-\u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u043c BaaS. \u0412\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u043e\u043f\u043e\u0441\u0440\u0435\u0434\u043e\u0432\u0430\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 (<a href=\"https:\/\/github.com\/Artod\/baascms\/blob\/master\/src\/baascms-adapter-parse.js\">\u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0434\u043b\u044f Parse.com<\/a>). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u0431\u044d\u043a\u0435\u043d\u0434\u0430. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 CMS:<\/p>\n<pre>     BaasCMS.init({         baas: 'Parse'     }); <\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0415\u0449\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0438 \u0442\u043e\u043b\u043a\u043e\u0432\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e, \u043d\u043e \u0443\u0436\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u0434\u0430 \u043a\u0430\u043a, \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b. \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u043f\u0440\u043e\u0435\u043a\u0442, \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0443\u0447\u0430\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/Artod\/baascms\">GitHub<\/a>. \u0411\u0430\u0433\u0438 \u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0430 baascms@gmail.com.      \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\/234409\/\"> http:\/\/habrahabr.ru\/post\/234409\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/3f3\/120\/d4f\/3f3120d4f50e48319ffc89fa1466486b.jpg\"\/><\/p>\n<p>  <b>BaasCMS<\/b> \u2014 \u044d\u0442\u043e JavaScript CMS, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0430\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u044d\u043a\u0435\u043d\u0434\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Backend_as_a_service\">BaaS<\/a>. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e <a href=\"https:\/\/parse.com\/\">Parse.com<\/a>.<\/p>\n<p>  <a href=\"https:\/\/github.com\/Artod\/baascms\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 BaasCMS<\/a> \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 GitHub.<\/p>\n<p>  <a href=\"https:\/\/artod.github.io\/baascms\/demo\/#\/\"><b>BaasCMS Demo<\/b> \u043d\u0430 GitHub Pages<\/a><br \/>  \u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 <a href=\"http:\/\/baascms.tumblr.com\/#\/\"><b>BaasCMS Demo<\/b> \u043d\u0430 Tumblr<\/a><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/artod.github.io\/baascms\/admin\/parse\/#\/\">\u0410\u0434\u043c\u0438\u043d-\u043f\u0430\u043d\u0435\u043b\u044c<\/a> \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043c\u043e (\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\/\u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u044b). \u0412 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0430\u0434\u043c\u0438\u043d\u043a\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u044e\u0447\u0438:<\/p>\n<ul>\n<li><i>Application ID<\/i>: nM7P7NnFA95CK1WrqWOf9wa3mskctaTOdk9vYflj<\/li>\n<li><i>Javascript Key<\/i>: 0zHfA9FG8L1xR699qmFXjxkZ1pDxgml0MWZMpqJG<\/li>\n<\/ul>\n<p>  <\/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-234409","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/234409","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=234409"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/234409\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=234409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=234409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=234409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}