{"id":276950,"date":"2016-03-25T13:57:03","date_gmt":"2016-03-25T10:57:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=276950"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=276950","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u0435\u043c package \u0434\u043b\u044f Atom"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a98\/789\/39a\/a9878939a0934af795a89ae101ac8eb6.gif\"\/><br \/>  \u041d\u0438\u0436\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0433\u043e package \u0434\u043b\u044f Atom.<a name=\"habracut\"><\/a><br \/>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c package \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f marionettejs \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/habrahabr.ru\/post\/273779\/\">\u0440\u0430\u043d\u0435\u0435<\/a>.<br \/>  \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f package \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/atom\/package-generator\">package-generator<\/a> (\u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043a\u0430\u043a package \u0432 \u0432\u0430\u0448\u0435\u043c Atom)  <\/p>\n<ul>\n<li>\u0418\u0434\u0435\u043c \u0432 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e <code>Packages-&gt;Package Generator-&gt;Generate Atom Package<\/code><\/li>\n<li>\u0412\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <code>atom-marionettejs-cli<\/code><\/li>\n<li>Enter<\/li>\n<\/ul>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448 package \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<br \/>  <code>Preferences-&gt;Packages<\/code> -&gt; \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0432\u043e\u0439 package, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e, <code>View Code<\/code><br \/>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043c\u0435\u043d\u044e.<br \/>  \u0418\u0434\u0435\u043c \u0432 <code>.\/menus\/package-generator.cson<\/code>, \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 <a href=\"https:\/\/atom.io\/docs\/latest\/hacking-atom-package-word-count#menus\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/a> \u0438 \u043f\u043e\u0434\u0433\u043e\u043d\u044f\u0435\u043c \u043f\u043e\u0434 \u0441\u0435\u0431\u044f.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041c\u043e\u0439 package-generator.cson<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">'context-menu':   'atom-text-editor': [     {       'label': 'Generate marionettejs application'       'command': 'atom-marionettejs-cli:generate-app'     }   ] 'menu': [   {     'label': 'Packages'     'submenu': [       'label': 'MarionetteJS CLI'       'submenu': [         {           'label': 'Generate marionettejs application'           'command': 'atom-marionettejs-cli:generate-app'         }         {           'label': 'Generate marionettejs file'           'command': 'atom-marionettejs-cli:generate-file'         }         {           'label': 'Set type'           'command': 'atom-marionettejs-cli:set-type'         }       ]     ]   } ]<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0418 \u0442\u0430\u043a, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0447\u0442\u043e\u0431\u044b \u044e\u0437\u0435\u0440 \u0438\u043c\u0435\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d \u0445\u043e\u0447\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <a href=\"https:\/\/github.com\/atom\/atom-space-pen-views\"> SelectListView <\/a>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0441\u0430\u043c\u043e\u0439 view<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">{SelectListView} = require 'atom-space-pen-views' items =   'type': [     {       label: 'ES6'       command: 'es6'     },     {       label: 'CommonJS'       command: 'cjs'     },     {       label: 'RequireJS'       command: 'rjs'     }   ],   'file': [     {       label: 'Layout'       command: '--layout'     },     {       label: 'Collection'       command: '--collection'     },     {       label: 'Model'       command: '--model'     },     {       label: 'Router'       command: '--router'     },     {       label: 'Object'       command: '--object'     },     {       label: 'Item View'       command: '--itemView'     },     {       label: 'Collection View'       command: '--collectionView'     },     {       label: 'Composite View'       command: '--compositeView'     },     {       label: 'Behavior'       command: '--behavior'     },   ]  module.exports =   class AtomMarionettejsCliView extends SelectListView     mode: null      viewForItem: (item) -&gt;       &quot;&lt;li data-command='#{item.command}'&gt;#{item.label}&lt;\/li&gt;&quot;      showModalPanel: (@mode) -&gt;       @panel ?= atom.workspace.addModalPanel(item: this, visible: false)       @addClass('overlay from-top')       @setItems(items[@mode])       @panel.show()       @focusFilterEditor()      cancelled: -&gt;       @panel.hide()      getCommand: -&gt;       selectedItem = this.getSelectedItemView();       return selectedItem.data().command;<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u043e\u0442 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0436\u0438\u0432\u0430\u044f view<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e70\/81e\/7c1\/e7081e7c131c4b98b223a5651701d16c.png\"\/>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u0448 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u0439\u043b (<code>.\/lib\/atom-marionettejs-cli<\/code>)<br \/>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u0430 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043b\u0435\u0436\u0430\u043b \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b \u0434\u0440\u0443\u0433\u043e\u0435 \u0438\u043c\u044f, \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u0432\u0430\u0448\u0435\u043c <code>package.json<\/code><br \/>  <code>&quot;main&quot;: &quot;.\/lib\/atom-marionettejs-cli&quot;<\/code><br \/>  \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 package \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u0448\u0435 view \u0438 \u043d\u0430\u0432\u0435\u0448\u0430\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0442\u0440\u0438\u0433\u0435\u0440\u0438\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e   <\/p>\n<pre><code>... {   'label': 'Generate marionettejs application'   'command': 'atom-marionettejs-cli:generate-app' } ...<\/code><\/pre>\n<p>  <\/p>\n<pre><code>activate: () -&gt;     @modalPanel = new AtomMarionettejsCliView()     @subscriptions = new CompositeDisposable     @subscriptions = atom.commands.add 'atom-workspace',       'atom-marionettejs-cli:generate-app': =&gt; @attach('app')       'atom-marionettejs-cli:generate-file': =&gt; @attach('file')       'atom-marionettejs-cli:set-type': =&gt; @attach('type')<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043d\u0430 \u043a\u043b\u0438\u043a \u0432 \u043d\u0430\u0448\u0435\u043c \u043b\u0438\u0441\u0442\u0435.  <\/p>\n<pre><code>@modalPanel.confirmed = -&gt;       path = getPath()       command = @getCommand();       if @mode is 'file'         fileName = filePrefix + command         args = ['g', command, fileName, path]       else         args = ['s', command];        cli.run(args);       @panel.hide()<\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 <code>confirmed<\/code> \u2014 \u044d\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u043d\u0430\u0448\u0435\u0439 SelectListView. \u041e\u043d \u0432\u044b\u043d\u0435\u0441\u0435\u043d \u0441\u044e\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0437\u043d\u043e\u0441\u0438\u0442\u044c \u0432\u044b\u0437\u043e\u0432 CLI (<code>cli.run()<\/code>) \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u0430\u043c.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>AtomMarionettejsCliView = require '.\/atom-marionettejs-cli-view' {CompositeDisposable, BufferedNodeProcess} = require 'atom' filePrefix = 'marionette-' cli = require 'marionette-cli\/lib\/cli'  getPath = -&gt;   editor = atom.workspace.getActivePaneItem()   file = editor?.buffer.file   projectPath = atom.project.getPaths()[0]    # if opened file or project doesn't exist   if !file &amp;&amp; !projectPath     throw new Error ('Create project or open some file')    # get path of opened file   path = editor?.buffer.file.path   # if no opened tabs   if !path     return projectPath    regexp = \/(.*\\\/).*\/g   # get path to file   regexp.exec(path)[1]  module.exports =   modalPanel: null   mode: null   subscriptions: null    activate: () -&gt;     @modalPanel = new AtomMarionettejsCliView()     @subscriptions = new CompositeDisposable     @subscriptions = atom.commands.add 'atom-workspace',       'atom-marionettejs-cli:generate-app': =&gt; @attach('app')       'atom-marionettejs-cli:generate-file': =&gt; @attach('file')       'atom-marionettejs-cli:set-type': =&gt; @attach('type')      @modalPanel.confirmed = -&gt;       path = getPath()       command = @getCommand();       if @mode is 'file'         fileName = filePrefix + command         args = ['g', command, fileName, path]       else         args = ['s', command];        cli.run(args);       @panel.hide()    deactivate: -&gt;     @modalPanel.destroy()     @subscriptions.dispose()    attach: (@mode) -&gt;     switch @mode       when 'app'         @generateApp()       when 'file', 'type'         @modalPanel.showModalPanel(@mode)    generateApp: -&gt;     appPath = getPath() + '\/app'     cli.run(['new', appPath]); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u043e\u0432\u0435\u0442\u043e\u0432  <\/p>\n<ul>\n<li>\u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c (<code>View-&gt;Developer-&gt;Toggle Developer Tools<\/code>)<\/li>\n<li>\u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u0444\u0430\u0439\u043b\u044b \u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u043a\u043d\u0430 (<code>View-&gt;Developer-&gt;Reload Window<\/code>), \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430 <\/li>\n<li>\u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u0442\u0438\u043f\u0430 <code>Refused to evaluate a string as JavaScript because 'unsafe-eval'...<\/code>. \u0414\u043b\u044f \u0431\u043e\u0440\u044c\u0431\u044b \u0441 \u043d\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/atom\/loophole\">loophole<\/a><\/li>\n<\/ul>\n<p>  \u041f\u0438\u0448\u0435\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e, \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0432 \u043f\u043e\u0440\u044f\u0434\u043e\u043a <code>package.json<\/code> \u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u043b\u0438\u0437\u0438\u0442\u044c.  <\/p>\n<pre><code>git commit -am 'first release' apm publish --tag v0.1.0 minor<\/code><\/pre>\n<p>  \u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0430 <a href=\"https:\/\/github.com\/denar90\/atom-marionettejs-cli\">Github<\/a><br \/>  Package \u043d\u0430 <a href=\"https:\/\/atom.io\/packages\/atom-marionettejs-cli\">atom.io<\/a><\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<br \/>  P.S. \u041d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e, \u044d\u0442\u043e \u0431\u044b\u043b \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043e\u043f\u044b\u0442 \u0441 <code>coffeescript<\/code>)          \t<\/p>\n<div class=\"polling\">\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043b\u0438 \u0412\u044b Atom<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"280057\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"14785\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv72269\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72269\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72269\">\u0414\u0430<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv72271\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"72271\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv72271\">\u041d\u0435\u0442<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"total\">\u041d\u0438\u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<p class=\"for_users_only_msg\">\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a href=\"https:\/\/habrahabr.ru\/auth\/login\/\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/p>\n<\/p><\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/280057\/\"> https:\/\/habrahabr.ru\/post\/280057\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a98\/789\/39a\/a9878939a0934af795a89ae101ac8eb6.gif\"\/><br \/>  \u041d\u0438\u0436\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0433\u043e package \u0434\u043b\u044f Atom.<\/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-276950","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276950","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=276950"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/276950\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}