I have a one-line text file containing 4 characters. It changes from time to time and I want to read it from Cheetah/Python 3. The code below doesn't work, and I am wondering if I am going down the rabbit hole trying to get these 4 characters into my eventual index .html for upload:
#with open('/path_to/length.txt','r') as file:
#set $length = file.read()
#$length
If there isn't a quick fix, I can try another approach. I *seems* like it should be simple, but doesn't everything? Am I missing the obvious?
- Paul VE1DX