Exemple #1
0
 @Observer(HomeContentChangedEvent.EVENT_NAME)
 /** Event handler to update the cached HTML based on the latest CommonMark home content. */
 public void updateHtml() {
   String text = applicationConfiguration.getHomeContent();
   if (text == null) {
     html = "";
   } else {
     html = renderer.renderToHtmlSafe(text);
   }
 }
 /**
  * Invoke the copy trans function for a document.
  *
  * @param document The document to copy translations into.
  */
 private void copyTranslations(HDocument document) {
   if (applicationConfiguration.isCopyTransEnabled()) {
     copyTransServiceImpl.copyTransForDocument(document, null);
   }
 }