%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/
Upload File :
Create Path :
Current File : //home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/rendercontent.vm

############################################################################
## Render current document content with some possible
## URL parameters:
## * outputSyntax: the syntax name to use to render the XDOM,
##                 if not provided use xhtml/1.0
## * outputVersion: the syntax version to use to render the XDOM
##                  if not provided use the last version of the outputSyntax
## * outputTitle: if true then also output the title
## 
############################################################################
#if ("$!request.outputTitle" == 'true')
  #set ($displayTitle = true)
  $services.progress.pushLevel(3)
#else
  #set ($displayTitle = false)
  $services.progress.pushLevel(1)
#end
$services.progress.startStep('Compute the content to display')
## Make sure we don't escape the content since we want HTML to be rendered
#set ($noEscapeContent = true)
#template("contentvars.vm")
$services.progress.endStep()
#if ($displayTitle)
  $services.progress.startStep('Compute title to display and modify rendered content accordingly')
  #template("titlevars.vm")
  $services.progress.endStep()
  <div class="xcontent">
    $xcontext.dropPermissions()
    #if ($displayTitle)
      <div class="document-info">
        <div id="document-title"><h1>$titleToDisplay</h1></div>
      </div>
    #end
    <div id="xwikicontent">
#end
#if ("$!exception" != '')
  $exceptiontool.getStackTrace($exception)
#else
  $renderedContent
#end
#if ($displayTitle)
    </div>
  </div>
#end
$services.progress.popLevel()

Zerion Mini Shell 1.0