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 variab
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
te
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 in
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 bi
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 managemen
Hello All,
I am developing an internal content management system using freemarker
templates and have run across a speed bump I've detailed in
a stackoverflow question here:
https://stackoverflow.com/questions/77390595/freemarker-how-to-get-unprocessed-content-of-custom-directive
The long and short
: 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
22, 2019 at 10:31 AM Riehemann, Michael <
> michael.riehem...@coremedia.com> wrote:
>
>> Hello,
>>
>> I have a Feature Request for the string built-in "replace".
>>
>> This built-in has some additional flags, see
>> https://freemarker.apache
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
Hello,
I have a Feature Request for the string built-in "replace".
This built-in has some additional flags, see
https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_string_flags
Example:
We have string, in which we want to remove the first and last appearance of a
10 matches
Mail list logo