Thread: Loop over list
View Single Post
Old 04-10-2015, 07:33 AM   #2
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,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
No, there isn't a way to do that in the template language. For various technical reasons it isn't possible (requires deferred evaluation).

You can of course do this in a custom template function (Preferences / Template Functions) where you have full python available. You can call standard template functions in a custom function, but it is enough of a pain that you might be better off doing your own shorten.
chaley is offline   Reply With Quote