View Single Post
Old 03-13-2012, 06:22 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Backi View Post
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.
chaley is offline   Reply With Quote