Quote:
Originally Posted by Backi
Is it really sub-evaluation? I thought there is no sub-evaluation, because there is no function after ":". All I have is a prefix/suffix which is a field, not an argument of any function.
|
Yes, it is sub-evaluation. There is a non-constant in the template -- a template expression in a template expression.
Quote:
This is a weird behavior. I think it should be either taken completely out or implemented completely, or at least documented in the manual.
|
I can't implement it completely/correctly without reimplementing
python's text formatting language, which isn't something I am willing to do.
You are right that the documentation can be improved, which is a never-ending task. In this case I copied the bold "Do not use subtemplates" warning from the single-function-mode section to the section discussing prefixes and suffixes.