Re: Supporting JSTL functions as well in FreemarkerServlet?
Daniel Dekany <[email protected]> Sat, 9 Aug 2014 15:21:46 +0200
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Are JSTL functions always just plain static methods, or do some of them have some additional requirements? Because if they are just static methods, then FreeMarker could certainly easily support them. It should be implemented inside freemarker.ext.jsp. Contributions that keep backward compatibility are highly welcome (will need to sign a typical Contributor License Agreement)! -- Thanks, Daniel Dekany Friday, August 8, 2014, 6:27:15 PM, Woonsan Ko wrote: > Hi, > > We found that FreemarkerServlet doesn't support JSTL functions. > I know there are workaround solutions like [1], but it would be more > seamless, IMHO, if it cares JSTL functions as well. > Would it be a good improvement to support JSTL functions in the core? > > I also browsed the source and TaglibFactory.java doesn't care "function" > element at the moment. So I'm thinking that maybe we can improve it to > add functor-like model object into the TaglibFactory.Taglib.tags map > *somehow*. > We're also interested in helping or contributing to improve this. Any > suggestions or hints are more than welcome! > > By the way, we Hippo have used Freemarker as the default templating > engine in our Web CMS products [2]. I really appreciate for this great > library and your effort. > > Thanks! > > Kind regards, > > Woonsan > > [1] > http://stackoverflow.com/questions/25123031/convert-jstl-function-to-freemarker > [2] > http://www.onehippo.org/library/concepts/web-application/hst-freemarker-support.html ------------------------------------------------------------------------------