Storing data in a variable for later use

Hi all,

is it possible - inside of an odt - to store data in a variable for later use?

I pass in functions to my odt and call them to retrieve certain data that is used multiple times. I would like to store the data after first retrieval and then access the variable.

Thanks
Dom

Yes, you should use genshi variable binding

Thank you Pokoli,

it’s working.

For anybody looking for the same, here is how I did it. Simply use:

<with vars="x = your_get_data_function()">
Value of x: <x>
</with>
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.