Re: Feature Request

2023-11-06 Thread Daniel Dekany
I thought you wanted both to store the FTL source code of the nested content (i.e, the raw content), and then also *immediately* execute the nested content. Because then, if you just execute the nested content as normally, with TemplateDirectiveBody.render(Writer), then it will see the same

Re: Feature Request

2023-11-06 Thread Cavan Morris
Hey Daniel, I read the reply and tried creating a TemplateDirectiveModel to handle it as you suggested. It seemed cleaner than calling internal freemarker methods. The issue I ran up against was that when rendering the final output it would miss model attributes that were defined in the external

Re: Feature Request

2023-11-04 Thread Daniel Dekany
Have you read my answer on SO, i.e., using DirectiveCallPlace (public API-s)? Did you try to go in that direction? On Thu, Nov 2, 2023 at 8:40 PM Cavan Morris wrote: > Thank you Daniel. > I was able to solve the problem in my case by creating my own util class in > the freemarker.core package

Re: Feature Request

2023-11-02 Thread Cavan Morris
Thank you Daniel. I was able to solve the problem in my case by creating my own util class in the freemarker.core package inside my own project's source tree. This allowed me to access the package-private deprecated methods that I believe are used for <#nested> handling. I plan to clean it up a

Re: Feature Request

2023-11-02 Thread Daniel Dekany
Kind of a niche use case... I would prefer avoiding much complexity and backward compatibility burden for it. But, maybe it's actually already doable. See my answer on Stack Overflow. On Mon, Oct 30, 2023 at 6:57 PM Cavan Morris wrote: > Hello All, > I am developing an internal content

RE: Feature Request for builtin "replace"

2019-10-24 Thread Riehemann, Michael
: Feature Request for builtin "replace" Hi Michael > On 22 Oct 2019, at 15:50, Barrie Selack wrote: > > Michael, > > Could you use remove_begining and remove_ending? > > https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builti > n_remove_ending

Re: Feature Request for builtin "replace"

2019-10-23 Thread Denis Bredelet
Hi Michael > On 22 Oct 2019, at 15:50, Barrie Selack wrote: > > Michael, > > Could you use remove_begining and remove_ending? > > https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_remove_ending > > Barrie > > > > On Tue, Oct 22, 2019 at 10:31 AM Riehemann, Michael <

Re: Feature Request for builtin "replace"

2019-10-22 Thread Barrie Selack
Michael, Could you use remove_begining and remove_ending? https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_remove_ending Barrie On Tue, Oct 22, 2019 at 10:31 AM Riehemann, Michael < michael.riehem...@coremedia.com> wrote: > Hello, > > I have a Feature Request for the