%PDF- %PDF-
| Direktori : /home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/ |
| Current File : //home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/contentvars.vm |
## -------------------------------
## Compute the content to display
## -------------------------------
## Honor the syntax if it's passed in the request.
#try("contentvmexception")
#set ($restrictedContent = ($request.restricted == "true"))
#set($outputSyntax = $xwiki.getAvailableRendererSyntax($request.outputSyntax, $request.outputSyntaxVersion))
#if ($outputSyntax)
## If the passed syntax is not an HTML-compatible syntax we need to HTML-escape it so that it can be
## displayed fine in HTML (since at the point this vm file is called we're already inside an HTML page with
## panels on the side, header, etc).
## That's unless the caller has explicitly asked to not escape the content (this is done for example when calling
## get.vm in order to get proper XML).
#set($syntaxType = $outputSyntax.type.toIdString())
#if ($syntaxType == "xhtml" || $syntaxType == "html" || $noEscapeContent)
#set ($renderedContent = $tdoc.displayDocument($outputSyntax, $restrictedContent))
#else
## Make sure to print correctly the result when it's not HTML,
#set ($renderedContent = "<pre>$escapetool.html($tdoc.displayDocument($outputSyntax, $restrictedContent))</pre>")
#end
#else
#set ($renderedContent = $tdoc.displayDocument($restrictedContent))
#end
#end