How to handle errors
The equivalent of js script:
Code
try {
/* script1 */
} catch {
/* script2 */
}
Could be written in freemarker like this :
Code
<#attempt>
<!-- script1 -->
<#recover>
<!-- script2, if script1 throws an error -->
</#recover>
Please give details of the problem