Igor Rogatty created FREEMARKER-103:
---------------------------------------

             Summary: Allow configuration for template exception handler in 
setSetting()
                 Key: FREEMARKER-103
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-103
             Project: Apache Freemarker
          Issue Type: New Feature
          Components: engine
    Affects Versions: 2.3.28
            Reporter: Igor Rogatty


When using dropwizard-views-freemarker, the only way to set Freemarker 
configuration is through 
[Configuration.setSetting()|https://github.com/apache/freemarker/blob/v2.3.28/src/main/java/freemarker/template/Configuration.java#L3195].
 This method doesn't support [customizing the behavior regarding 
TemplateException|https://freemarker.apache.org/docs/pgui_config_errorhandling.html#autoid_4|https://freemarker.apache.org/docs/pgui_config_errorhandling.html#autoid_44].
 There is a workaround described in the related [dropwizard 
issue|https://github.com/dropwizard/dropwizard/issues/2372#issuecomment-393889522]
 involving [attempt + 
recover|https://freemarker.apache.org/docs/ref_directive_attempt.html] but it 
would be great to have it supported natively.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to