Somewhat relevant issue : https://github.com/dropwizard/dropwizard/issues/2196 (for the key in configuration files).
On Tuesday, 7 November 2017 17:47:46 UTC-5, daniel...@gmail.com wrote: > > While now this can be solved without to much determination (though the > Manual is not very friendly, as it doesn't show that the name "views" is > coming from MyConfig), it's a rather inconvenient way of doing this with > polymorphic configuration. You can configure database, reporting, etc. > easily out-of-the-box. Shouldn't "views" be predefined as well? I'm not > saying FreeMarker specifically, but views in general (though at least with > FreeMarker you should pretty much always set some configuration settings). > > BTW, I find it strange that the configuration under "views" is matched by > file extensions, rather than by template engine name. FreeMarker for > example defines multiple file extensions (though ATM you only support .ftl). > > On Wednesday, March 4, 2015 at 3:10:54 PM UTC+1, Carlo Barbara wrote: >> >> I've opened an issue for this: >> https://github.com/dropwizard/dropwizard/issues/913 >> >> On Sun, Feb 15, 2015 at 5:56 AM <daniel...@gmail.com> wrote: >> >>> I'm the current maintainer of FreeMarker, and I have noticed that some >>> of the users are also Dropwizard uses and they have difficulties with >>> configuring FreeMarker. Looking at the manual and such, I don't yet see how >>> to do that either. Configurability is important for this template engine >>> (like setting incompatible_improvements, if nothing else). I know littel >>> about Dropwizard, so I'm not sure what would be the most Dropwizardish way >>> of doing this. But maybe, there should be an option in the Dropwizard >>> configuration YAML under which you can specify a bunch of name-value pairs, >>> then pass those blindly to FreeMarker's Configuration.setSetting(String, >>> String) API. It will take care of the rest, like validation the name, etc. >>> (Of course, one has more options when configuring FreeMarker though its >>> Java API, and maybe allowing to specify a callback for that would be usuful >>> too, but just being able to feed Configuration.setSetting would help the >>> situation a lot.) >>> >>> Also, let me know if I can help this on the FreeMarker side, like if you >>> need some new API for this. 2.3.22 is coming on March the 1st, so they >>> could be added quickly. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "dropwizard-dev" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to dropwizard-de...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- You received this message because you are subscribed to the Google Groups "dropwizard-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.