text: class PostView{
      constructor(wrapperSelector, mainContentSelector){
          this._wrapperSelector = wrapperSelector;
          this._mainContentSelector = mainContentSelector;
      }
  
      showCreatePostPage(data, isLoggedIn){
          let _that = this;
          let templateUrl;
  
          if (isLoggedIn){
              templateUrl = "templates/form-user.html";
          }
          else {
              templateUrl = "templates/form-guest.html";
          }
  
          $.get(templateUrl, function (template) {
              let renderedWrapper = Mustache.render(template, null);
              $(_that._wrapperSelector).html(renderedWrapper);
  
              $.get('templates/create-post.html', function (template) {
                  var renderedContent = Mustache.render(template, null);
                  $(_that._mainContentSelector).html(renderedContent);
  
                  $('#author').val(data.fullName);
  
                  $('#create-new-post-request-button').on('click', function (ev) {
                      let title = $('#title').val();
                      let author = $('#author').val();
                      let content = $('#content').val();
                      let date = moment().format("MMMM Do YYYY");
  
                      let data = {
                          title: title,
                          author: author,
                          content: content,
                          date: date
                      };
  
                      triggerEvent('createPost', data);
                  });
              });
          });
      }
  }