I don't understand the use of the "echo" function in the templates.
Some functions return a variable, whereas others print it, and still others plan to allow both methods via a input parameter.
I am writting some changes in the template-function*.php files in order to systematically use a returned variable, because I use those variables as parameters for the phplib's templates engine.
My question is :
Why do you use "echo" in template-functions*.php and not in the index.php ?
Because, if there is an advantage, I would like to use it in my developments.
Sure it's not always convenient to write echo blabla(); but in the other hand you can do what you want with the output of the function (store it, save it in file, send it to a html-template engine...)
thanks a lot for your help.