Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to retrieve values calculated in templates after template execution done?

0
Posted

How to retrieve values calculated in templates after template execution done?

0

First of all, be sure your application is designed well: templates should display data, and almost never calculate data. If you are still sure you want to do it, read on… When you use <#assign x = "foo">, then you do not actually modify the data-model (since that is read-only, see: Programmer’s Guide/Miscellaneous/Multithreading), but create the x variable in the runtime environment of the processing (see Programmer’s Guide/Miscellaneous/Variables).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123