import Ember from 'ember';
import config from '../config/environment';

export default Ember.View.extend({
  injectMarkup: function() {
    console.log(command);
    var content = Ember.$('#index-content').clone();

    var source = $(this.$().children()[0]).clone();
    content.find('#package-source-placeholder').replaceWith(source);

    var command = $(this.$().children()[1]).clone();
    content.find('#package-source-command-placeholder').replaceWith(command);

    this.$().replaceWith(content);
  }.on('didInsertElement')
});

import Ember from 'ember';

export default Ember.View.extend({
  injectMarkup: function() {
    var content = Ember.$('#index-content').clone();

    var source = Ember.$(this.$().children()[0]).clone();
    content.find('#package-source-placeholder').replaceWith(source);

    var command = Ember.$(this.$().children()[1]).clone();
    content.find('#package-source-command-placeholder').replaceWith(command);

    this.$().empty();
    content.appendTo(this.$());
  }.on('didInsertElement')
});

Append content instead of replacing and clean up lint errors.
Append content instead of replacing and clean up lint errors.
