Hi,
Maybe this is a Stupid question but i cant find anything on the Internet. I Think i’m describing my Problem wrong, can anyone give me some Keywords what I need to google for?
So here is my Problem:
Iam generating a PDF with the template engine and for Customization I want to be able to edit the text of this PDF. So I created a model with all the fields… but in one of the text parts some data for the particular PDF is added. I did this like so:
text text {{ data }} text text text
So when I save this string into a model.TextField()
and insert it into my template this part will be escaped (Of course!).
So how can I make this text Customizable and decide in the TextField where the Variable goes?
I could just use str.replace
but maybe there is a more elegant way to do this?