META-INF.resources.wiki.view_page_content.jspf Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%
try {
formattedContent = WikiUtil.getFormattedContent(wikiEngineRenderer, renderRequest, renderResponse, wikiPage, viewPageURL, editPageURL, title, preview);
%>
<%= formattedContent %>
<%
}
catch (WikiFormatException wfe) {
if (_log.isDebugEnabled()) {
_log.debug("Unable to get wiki engine for " + wikiPage.getFormat());
}
%>
<%= wikiPage.getContent() %>
<%
}
catch (Exception e) {
_log.error("Error formatting the wiki page " + wikiPage.getPageId() + " with the format " + wikiPage.getFormat(), e);
%>
<%
}
%>
<%!
private static final Log _log = LogFactoryUtil.getLog("com_liferay_wiki_web.wiki.view_page_content_jspf");
%>