Re: Looking for contributors as part of Apache incubation
Woonsan Ko <[email protected]> Tue, 02 Jun 2015 09:31:39 -0400
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Thank you very much, Daniel!
I have been very happy with Freemarker personally and so it's very hard
to find somethings I can hate, but I've just tried to list some wishes
and improvement ideas from our experiences below: :-)
FreemarkerServlet related improvements
--------------------------------------
- TLD initializations can be done in #init() phase to avoid initial
hiccups. We Hippo had to override the default servlet:
https://issues.onehippo.com/browse/HSTTWO-3299
- #setContentType() invocation can check if it was already set before
template execution.
Currently, it invoked on #setContentType() every time regardless of
the situation that (H)MVC framework sets it before executing the
template. I'd like to have an option to not set if already existing at
least. (ref: https://issues.onehippo.com/browse/HSTTWO-3012)
- Configuration settings could be set through init parameters.
Some servlet-related parameters are set through init parameters, but
it could be even better if there's any specific init-param(s) to set
Configuration settings without code changes.
(ref: https://issues.onehippo.com/browse/HSTTWO-2525,
https://issues.onehippo.com/browse/HSTTWO-2460)
- Locale issue.
Currently templates are executed with a specific global locale all
the time (FreemarkerServlet.deduceLocale() uses config.getLocale()). It
can be overriden though. This can result in wrong date/currency
formatting issue for instance (when using <@fmt.format* /> JSTL tags).
It could have read HttpServletRequest#getLocale() by default.
Normally (H)MVC frameworks sets the request locale before rendering a view.
- More lightweight version.
Sometimes our users want to use a more lightweight version instead
of FreemarkerServlet. Especially people who are very familiar with
Spring MVC Framework want that without having to set up a Freemarker
servlet configuration in web.xml. One hurdle for them was they cannot
easily take advantage of JSTL tag libraries if they don't use the
servlet. I wish we could have more lightweight component support with
which we can take advantage of JSTL tag support independently, without
having to set up a servlet.
By the way, this might be a byproduct of spring mvc framework
integration probably.
I think this is it for now. :-)
Thanks again!
Cheers,
Woonsan
On 6/1/15 4:00 PM, Daniel Dekany wrote:
> So, Marijan and Woonasan. I'm especially interested in what Hippo
> needs, what FM features you miss the most there, and what existing
> "features" you hate the most.
>
> Also, if in what topics you feel like contributing to. (Like Woonasan
> has mentioned Spring MVC integration. That would be very useful to
> improve.)
>
> (And again, there will be a TODO list to pick from.)
>
--
[email protected] www.onehippo.com
Boston - 745 Atlantic Ave, 8th Floor, Boston MA 02111
Amsterdam - Oosteinde 11, 1017 WT Amsterdam
US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
------------------------------------------------------------------------------