stop

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.

上一章 首页 下一章