stop

Page Contents

Synopsis

<#stop>
or
<#stop reason>

Where:

Description

Aborts template processing with the given (optional) error message. This must not be used for ending template processing in normal situations! The caller of the FreeMarker template will see this as a failed template rendering, not as a normally finished one.

This directive throws a StopException, and the StopException will hold the value of the reason parameter.

FreeMarker Manual -- For FreeMarker 2.3.22
HTML generated: 2015-02-28 21:34:03 GMT
Edited with XMLMind XML Editor
Here!